SyntaxFix
Write A Post
Hire A Developer
Questions
Do this to use a profile with name 'dev':
session = boto3.session.Session(profile_name='dev') s3 = session.resource('s3') for bucket in s3.buckets.all(): print(bucket.name)