Getting started on EC2
Sign up
- Navigate to Amazon's aws page and click on the Getting started link. If you already have an aws account, log in and skip the next step.
- Sign up and validate your account
-
Once you've signed up or signed in, hover over the product's menu and click on Elastic Computing Cloud.
-
Then, click on the Sign up for Amazon EC2 button to sign up for the ec2 service
-
Now, once you have access to ec2, get your access identifiers by hovering over Your Account in the menu and clicking on Access Identifiers
-
Scroll down the page and find the box titled "Access Key ID and Secret Access Key," In the box, you should see a box titled "Your Access Key ID." Make note of this string.
-
Scroll down a little further and find the box titled "Your Secret Access Key." This box is hidden for security reasons, so you'll have to click on the show link. Make note of this string as well.
Setup
These access identifiers are crucial for your cloud to operate, so we need to expose them to your cloud. PoolParty expects these identifiers to be in one of several places. You can explicitely set them in your pool.spec like so:
1 cloud :app do 2 access_key "AAAAAAAAAABBBBBB" 3 secret_access_key "NRLSKDM@$@$/4@$%%NNNSN" 4 ...
Of course, this works if you are going to keep your spec local and private, but that doesn't really bod well for sharing, so instead, let's set them as environment variables. You can do this by setting them explicitly in a profile file. I develop on a mac, so this file for me is at ~/.profile. Check your OS for your profile file.
Export the variables AWS_ACCESS_KEY_ID with the access key you found above on the AWS site and export the AWS_SECRET_ACCESS_KEY with the secret access key you found from the AWS site as well like so:
1 export AWS_ACCESS_KEY_ID=AAAAAAAAAABBBBBB 2 export AWS_SECRET_ACCESS_KEY=NRLSKDM@$@$/4@$%%NNNSNI tend to like keeping things separate, so I create a shell script to source. For me, this looks like:
1 #!/bin/sh 2 export AWS_ACCESS_KEY_ID=AAAAAAAAAABBBBBB 3 export AWS_SECRET_ACCESS_KEY=NRLSKDM@$@$/4@$%%NNNSN 4 5 export POOL_SPEC=/home/auser/Sites/pp/pool.spec
What's the POOL_SPEC doing there? This will save a lot of headache if you export this in the file. PoolParty expects to be able to find the pool.spec in one of several locations. The current directory, the file pointed to by the POOL_SPEC environment variable, /etc/poolparty/pool.spec, and a few other places. You can also explicitly set these when calling pool functions with the -n switch, but that gets old and fast.
Great! Now we are ready to interact with our cloud on ec2! You can head to the Getting Started tutorial for more information about communicating to your cloud or head back Home for other resources

