Skip to content

Instantly share code, notes, and snippets.

@bmwitcher
Created November 24, 2020 04:27
Show Gist options
  • Save bmwitcher/e9e3470acfa93bdf9ba8e7b2a271ef99 to your computer and use it in GitHub Desktop.
Save bmwitcher/e9e3470acfa93bdf9ba8e7b2a271ef99 to your computer and use it in GitHub Desktop.
creating an iam user in aws
import boto3
iam = boto3.client('iam')
response = iam.create_user(
UserName='pythontestuser'
)
response = iam.attach_user_policy(
UserName='pythontestuser',
PolicyArn='arn:aws:iam::aws:policy/AmazonEC2FullAccess'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment