Skip to content

Instantly share code, notes, and snippets.

@greencamp20552
Created July 11, 2023 09:37
Show Gist options
  • Select an option

  • Save greencamp20552/9c1c29e682d647c4648db5fdba62bc5d to your computer and use it in GitHub Desktop.

Select an option

Save greencamp20552/9c1c29e682d647c4648db5fdba62bc5d to your computer and use it in GitHub Desktop.
aws-architect-professional
from boto.s3.connection import S3Connection
from boto.sts import STSConnection
user = sts.get_federation_token('user1')
s3connection = S3Connection(user.credentials.access_key, user.credentials.secret_key, security_token=user.credentials.session_token)
s3connection.create_bucket('dev.professional')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment