Create programmatic user using lambda function
- Create
User - Create
Policy - Attach
policy to the user - Create
access keyandsecret key
- Gives
read and writepermission to thespecific folderinS3bucket
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"
]
}chalice deploy --connection-timeout 120