Created
November 24, 2020 04:27
-
-
Save bmwitcher/e9e3470acfa93bdf9ba8e7b2a271ef99 to your computer and use it in GitHub Desktop.
creating an iam user in aws
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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