m-thirumal / aws-iam-user

Creating AWS IAM programmatic user using (Lambda function)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Creating AWS IAM programmatic user using (Lambda function)


Languages

Language:Python 100.0%