Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
336 B
0
Indexable
Never
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
        )