Installation manual

Download the Access key ID, Secret access key, important information to be downloaded onto your Local System

1. Create a folder called .ec2 in your local directory.
   mkdir $LOCAL_DIRECTORY/.ec2

2. Move the public and private keys into the .ec2 folder.
   mv *.pem $LOCAL_DIRECTORY/.ec2

3. In your web browser, go to http://aws.amazon.com.

4. Log into your account using the e-mail address and password of your primary account.

5. Click on the Account link.
Home
6. Click on Security Credentials link. Home
7. Make note of the Account Number, Access Key ID, Secret Access Key that appear on the page which are required for running the PathSeq. Home
8. Click on the X.509 Certificates Tab. Click on Create New to create a new certificate, which open a page titled X509 Certificate Created. Home
9. When prompted to download your "Private Key File" and "X.509 Certificate", download both without altering the suggested filenames.

They ought to have names like:

    cert-XXXXXXXXXXXXXXXXXXXXXXXXXXX.pem
    pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem

Home
NOTE: If creation is successful, you will see a page with two download buttons, one labeled Download Private Key File and the other labeled Download X.509 Certificate. Be sure to download both files. Keep the private key safe, because there is no way to re-download it without creating a new certificate and invalidating the old one.

10. We also recommended that you protect these files by removing all group and world permissions.

   chmod 600 $LOCAL_DIRECTORY/.ec2/*.pem

11. Permanently set the environment variables in the my.bashrc file. Replace Xs and paths with the information noted in the previous step.
   export EC2_PRIVATE_KEY=$LOCAL_DIRECTORY/.ec2/pk-xxxxxxxxxxxxxxx.pem
   export EC2_CERT=$LOCAL_DIRECTORY/.ec2/cert-xxxxxxxxxxxxxxx.pem

   For example: (edit ~/.my.bashrc)
   export EC2_PRIVATE_KEY=$LOCAL_DIRECTORY/.ec2/pk-xxxxxxxxxxxxxxx.pem
   export EC2_CERT=$LOCAL_DIRECTORY/.ec2/cert-xxxxxxxxxxxxxxx.pem

12. Create a key pair in the .ec2 folder.

   ec2-add-keypair pathseq-keypair > $LOCAL_DIRECTORY/.ec2/id-pathseq-keypair

13. Change the permissions of id-pathseq-keypair.

   chmod 600 $LOCAL_DIRECTORY/.ec2/id-xxxx-keypair

Note: Make sure that these variables are set correctly in your environment before proceeding.