Boto utility is used for accessing AWS using python.
Boto is a Python package that provides interfaces to Amazon Web Services.
Install boto python module
Fetch boto project
root@ubuntu:/personal/aws# git clone https://github.com/boto/boto.git
.....
.....
Install python libraries
root@ubuntu:/personal/aws/boto# python setup.py install
......
.....
Installed /usr/local/lib/python2.7/dist-packages/boto-2.41.0-py2.7.egg
Processing dependencies for boto==2.41.0
Finished processing dependencies for boto==2.41.0
Verify that boto is accessed from the python code
root@ubuntu:/personal/aws/boto# cd -
/
root@ubuntu:/# python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from boto.vpc import VPCConnection
>>>
root@ubuntu:/# cd -
Its better to use IAM user. AWS IAM feature allows administrator to create users with specific access permission to access AWS resources. For example, an IAM user can be allowed to access VPC and EC2.
How to Retrieve IAM Access Keys
1. Go to Amazon Web Services console and click on the name of your account (it is located in the top right corner of the console). In the expanded drop-down list, select Security Credentials.
2. Click the Get Started with IAM Users button.
3. This will bring you to the IAM Dashboard where you can manage IAM users and their permissions like creating new IAM users, adding IAM users to the custom groups, granting them a certain level of permissions, etc.
4. To review the IAM access keys, select a particular IAM user and go to User Actions > Manage Access Keys
5. You will see a list of Access Keys for the IAM user.
Note: You cannot retrieve the existing secret keys. You can see the secret key only once immediately after creating. So, in order to get a secret key, you will need to create a new one.
6. Click Create Access Key to create a new key
6. The new access keys will be generated and displayed on the screen.
Attention! If you do not write down the key or download the key file to your computer before you press "Close" or "Cancel" you will not be able to retrieve the secret key in future. Then you'll have to delete the keys which you created start to create new keys.
create a file called .boto in your home directory with the following contents:
[Credentials] aws_access_key_id = YOUR_ACCESS_KEY_ID aws_secret_access_key = YOUR_SECRET_ACCESS_KEY
https://github.com/boto/boto
http://boto.cloudhackers.com/en/latest/ref/vpc.html
http://www.cloudberrylab.com/blog/how-to-find-your-aws-access-key-id-and-secret-access-key-and-register-with-cloudberry-s3-explorer/
https://blogs.nd.edu/devops/2013/11/22/scripting-aws-with-boto/