Create AWS client

PHOTO EMBED

Wed May 29 2024 12:18:34 GMT+0000 (Coordinated Universal Time)

Saved by @krishna01

# RECOMMENDED WAY
import boto3
client = boto3.client(
    s3,                         # boto3 will get the credentials either from
    region_name=us-east-1       # environment vars. or the .aws/credentials file.
)
content_copyCOPY

https://www.prplbx.com/resources/blog/aws-sdk-python-boto3-cheat-sheet/