Skip to content

Instantly share code, notes, and snippets.

@ivankeller
Created February 11, 2021 09:48
Show Gist options
  • Save ivankeller/8dfa729460f443cc1039e039d2308c62 to your computer and use it in GitHub Desktop.
Save ivankeller/8dfa729460f443cc1039e039d2308c62 to your computer and use it in GitHub Desktop.
Connect to AWS with your AWS profile
import boto3
profile_name = ''
prod = boto3.session.Session(profile_name=profile_name)
# use it, example:
s3client = prod.client('s3')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment