-
-
Save a3linux/6503152 to your computer and use it in GitHub Desktop.
This file contains 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
from boto.iam import IAMConnection | |
iam = IAMConnection(aws_key, aws_secret) | |
iam.create_user('user') | |
iam.create_group('group') | |
iam.put_group_policy('group', 'EC2', '{"Statement":[{"Effect":"Allow","Action":"ec2:*","Resource":"*"}]}') | |
iam.add_user_to_group('group', 'user') | |
iam.create_access_key('user') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment