IAM-Create.py 286 B

1234567891011
  1. import boto3
  2. client = boto3.client('iam')
  3. client.create_user(UserName='heheda')
  4. response = client.attach_user_policy(
  5. UserName='heheda',
  6. PolicyArn='arn:aws-cn:iam::aws:policy/AdministratorAccess')
  7. client.create_login_profile(UserName='heheda',Password='heheda')