Install virtualenv using pip
$ pip install virtualenv
Clone the vft-swift repo
$ git clone [email protected]:ValleyForgeTech/vft-swift.git
$ cd vft-swift
Create a virtual environment
$ virtualenv venv
Activate your virtual environemtn
$ source venv/bin/activate
Install the project requirements
$ pip install -r requirements.txt
Boto can be configured to talk to AWS in manyg ways. The convention we use is to use the ~/.aws/credentials
file.
$ mkdir ~/.aws
$ touch ~/.aws/credentials
Edit the ~/.aws/credentials
folder and add the following. Replace YOUR_KEY and YOUR_SECRET with your AWS key/secret combination.
[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET
As an alternative, you can create a ~/.boto
file with the following:
[Credentials]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET
To execute, run the following command
$ fab build_swift_cluster
Copy the rysyncd.conf file to your directory
$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0 -U test:tester -K testing stat
$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0/ -U test:tester -K testing upload test2 *.txt
$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0/ -U test:tester -K testing list
$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0/ -U test:tester -K testing list test2