Skip to content

Instantly share code, notes, and snippets.

@thomasmichaelwallace
Created August 9, 2017 21:10
Show Gist options
  • Save thomasmichaelwallace/c4c19f87a84e0a1085f1ec6c171bdb6d to your computer and use it in GitHub Desktop.
Save thomasmichaelwallace/c4c19f87a84e0a1085f1ec6c171bdb6d to your computer and use it in GitHub Desktop.
IAM Role Policy to open EC2 to a Lambda
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"ec2:RunInstances"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment