This Repo contains various aws services automation with the help of AWS's owned SDK [Boto3] python scripts. which do all the automations and create, delete, upload and maintain the powerfull serverless application with the help of boto3 python scripts.
Install the latest Boto3 release via pip:
pip install boto3
If your project requires a specific version of Boto3, or has compatibility concerns with certain versions, you may provide constraints when installing:
# Install Boto3 version 1.0 specifically
pip install boto3==1.0.0
# Make sure Boto3 is no older than version 1.15.0
pip install boto3>=1.15.0
# Avoid versions of Boto3 newer than version 1.15.3
pip install boto3<=1.15.3
Using the AWS Common Runtime (CRT)
However, Boto3 doesn’t use the AWS CRT by default but you can opt into using it by specifying the crt extra feature when installing Boto3:
pip install boto3[crt]
To revert to the non-CRT version of Boto3, use this command:
pip uninstall awscrt
If you need to re-enable CRT, reinstall boto3[crt] to ensure you get a compatible version of awscrt:
pip install boto3[crt]
Before using Boto3, you need to set up authentication credentials for your AWS account using either the IAM Console or the AWS CLI. You can either choose an existing user or create a new one.
Refer this link to Install the aws-cli for your machine by downloading, without this aws-cli you can't access this aws in command-line interface.
For instructions about how to create a user using the IAM Console, see Creating IAM users. Once the user has been created, see Managing access keys to learn how to create and retrieve the keys used to authenticate the user.
If you have the AWS CLI installed, then you can use the aws configure command to configure your credentials file:
aws configure
Alternatively, you can create the credentials file yourself. By default, its location is ~/.aws/credentials
. At a minimum, the credentials file should specify the access key and secret access key. In this example, the key and secret key for the account are specified in the default profile:
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
You may also want to add a default region to the AWS configuration file, which is located by default at ~/.aws/config
:
[default]
region=us-east-1
Alternatively, you can pass a region_name when creating clients and resources.
You have now configured credentials for the default profile as well as a default region to use when creating connections. See Configuration for in-depth configuration sources and options.