Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
336 B
2
Indexable
session = boto3.Session(profile_name=os.getenv('AWS_PROFILE'))
        credentials = session.get_credentials()
        client = boto3.client(
            's3',
            aws_access_key_id=credentials.access_key,
            aws_secret_access_key=credentials.secret_key,
            aws_session_token=credentials.token
        )