We will take a look at using Python Scripts to interact with infrastructure provided by Amazon Web Services(AWS).
In this tutorial, We are considering only Python scripting for S3.
First thing, You have to check python is installed in your machine by typing simple command:
which python
That will show you the path of python executable. If python is not installed in your machine first download it from this site: https://www.python.org/downloads/
After this check the version of python by typing:
python -V
We are using python 2.7.12 and you can use python 2.6 or higher.
Next thing you have to check pip is intall in your machine by typing command:
which pip
That will show you the path of pip executable.If pip is not installed in your machine first download it from this site: https://pip.pypa.io/en/stable/installing/
Your version of pip should be 9.0.1 or newer.Check your version of pip by typing :
pip -V
Install boto3 and AWS CLI
Now basic installation is completed. Now install the library of python which is used to interact with AWS on by using this command
pip install awscli boto3 -U --ignore-installed six
Now login to your AWS account and select IAM.
This window will come on your screen.Read More »