Getting Started
Related Links
Setting up Boto3 for Python
Prerequisites
- python(python >2.7 version or python3 >3.14 version)
- pip OR pip3
- boto3
Steps to install above in CentOS
- Install python via following command
sudo yum install python OR sudo yum install python3
-
Install pip via following command
curl -O https://bootstrap.pypa.io/get-pip.py python get-pip.py --user OR python3 get-pip.py --user
-
Install boto3 library
pip install boto3 --upgrade --user OR pip3 install boto3 --upgrade --user
Verify above installations by checking versions by using below commands:
-
Check python version via following commands
python --version OR python3 --version
-
Check pip version via following commands
pip --version OR pip3 --version
Configure boto3
- Create .aws directory to keep config and credentials file using following command $ mkdir ~/.aws
-
Create aws 'credentials' file as below with correct 'access' and 'secret'
$ cat ~/.aws/credentials [default] aws_access_key_id =
aws_secret_access_key =