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
This section of the boto3 documentation is helpful.
Here's what worked for me:
session = boto3.Session(profile_name='dev') client = session.client('cloudfront')