Created
June 11, 2023 15:00
-
-
Save ohaval/4595b8964c8e38ccc6228756b467c19c to your computer and use it in GitHub Desktop.
Use classic AWS keys with boto3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
session = boto3.Session( | |
region_name='us-east-1', | |
aws_access_key_id=AWS_ACCESS_KEY_ID, | |
aws_secret_access_key=AWS_SECRET_ACCESS_KEY, | |
) | |
session.client('s3').list_buckets() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment