Skip to content

Creating AWS IAM programmatic user using (Lambda function)

Notifications You must be signed in to change notification settings

m-thirumal/aws-iam-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages