Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 807 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 807 Bytes

AWS IAM USER

Python AWS Cloud

Create programmatic user using lambda function

  1. Create User
  2. Create Policy
  3. Attach policy to the user
  4. Create access key and secret key

Policy defined

  • Gives read and write permission to the specific folder in S3 bucket

USAGE

Invoke the lambda with following json input

{
  "AccountId": "65476567567",
  "UserName": "NEWIAMUSER",
  "PolicyName": "NEWPOLICY",
  "BucketName": "bucket_name",
  "FolderName": "FOLDERNAME",
  "PolicyARN": [
                "arn:aws:iam::76576587587:policy/app1"
            ]
}

Deploy

chalice deploy --connection-timeout 120