rajarshig.github.io

AWS S3 usage with Python & Boto3 library

Published at: 10/2/2020


Cloud based object storage has become an important part of any software application stack in recent times. AWS S3 has become the de-facto choice for this use case.

Use with python

Create boto3 configuration using AWS credentials

import boto3

s3_resource = boto3.resource(
    "s3",
    aws_access_key_id="**********",
    aws_secret_access_key="**********",
)

S3 File download

Get file objects of a Bucket