Skip to content

Instantly share code, notes, and snippets.

@apun
Created November 17, 2015 22:58
Show Gist options
  • Save apun/33c2fd954a8e238bbcb0 to your computer and use it in GitHub Desktop.
Save apun/33c2fd954a8e238bbcb0 to your computer and use it in GitHub Desktop.
Trigger Lambda role policy for InvokeFunction and EC2:Describe*
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1447799371000",
"Effect": "Allow",
"Action": [
"ec2:Describe*"
],
"Resource": [
"*"
]
},
{
"Sid": "Stmt1447799537000",
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction"
],
"Resource": [
"arn:aws:lambda:us-east-1:<aws-account-number>:function:worker_function"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment