AWS Boto 3
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2.
To use Boto3, you first need to install it and its dependencies.
Install or update Python
Before installing Boto3, install Python 3.6 or later; support for Python 3.5 and earlier is deprecated. After the deprecation date listed for each Python version, new releases of Boto3 will not include support for that version of Python. For details, including the deprecation schedule and how to update your project to use Python 3.6, see Migrating to Python 3.
pip install boto3
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.
How to Create AWS Free Account:-
You Can Follow the following steps to Create your AWS Account
You have to Create Credentials file Yourself.
To Access your AWS Account you are required to pass the AWS Access Key and AWS Secret Access Key. After Providing these details you can connect to your AWS Account using Boto3.
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
From Where I can Get These Keys:-
Features of Boto 3:-
There are two ways in which we can Connect to AWS
- By Using Boto 3 Client
- By Using Boto 3 Resource
Client vs Resources
Resources are high-level abstractions of AWS services compared to clients. Resources are the recommended pattern to use boto3 as you don’t have to worry about a lot of the underlying details when interacting with AWS services. The Code written in Boto 3 Resource is simpler than that of Boto 3 Client
But, Resources aren’t available for all AWS services.In such case there is no way than using Client.