Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 2.05 KB

README.md

File metadata and controls

38 lines (33 loc) · 2.05 KB

AWS Boto3 Project

Getting started with Installation

  1. Install python
  2. Install pip
  3. Add python and pip installation to PATH variable
  4. Install boto3: pip install boto3
  5. Install AWS-CLI: pip install awscli --upgrade --user
  6. Configure AWS-CLI for linking account using the command : aws configure

Create Python code and run

  1. Create boto3 script and save the file as <boto3_script_name>.py extension
  2. Run as python <boto3_script_name>.py

Detailed Instructions

The following steps has been captured from the Boto3 Getting Started docs.

Install boto3

Boto3 requires python version 3 or above and python package installer pip

  • Refer official python download documentation to install it.
    • For macos, brew install python works good.
    • For Linux, apt update && apt install python might be fine.
  • Install pip using the official pip install documentation
    • I've used get-pip.py method to install pip
  • Install boto3: pip install boto3 or python3 pip install boto3

AWS CLI

  • Install AWS CLI by following the instructions here in the docs
  • After installing AWS CLI, use aws configure command to setup AWS secret key, access key or temporary sts key.
  • Read more about the AWS boto3 configuration here
  • Install AWS-CLI: pip install awscli --upgrade --user

AWS Common Runtime (Optional)

In addition to the default install of Boto3, you can choose to include the new AWS Common Runtime (CRT). The AWS CRT is a collection of modular packages that serve as a new foundation for AWS SDKs.

Using Boto3

To use Boto3, you must first import it and indicate which service or services you’re going to use:

import boto3