I am using the Boto 3 python library, and want to connect to AWS CloudFront. I need to specify the correct AWS Profile (AWS Credentials), but looking at the official documen
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)