Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
Setup infrastructure permissions to spawn new lambda from existing la…
Browse files Browse the repository at this point in the history
…mbda
  • Loading branch information
cwaltken-edrans committed Apr 12, 2017
1 parent 73e4d99 commit 5c7009c
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions infrastructure/infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,22 @@ func (infra *Infrastructure) createIAMLambdaRolePolicy(roleName string) error {
PolicyDocument: aws.String(`{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"sqs:SendMessage"
],
"Effect": "Allow",
"Resource": "arn:aws:sqs:*:*:goad-*"
},
{
"Action": [
"sqs:SendMessage"
],
"Effect": "Allow",
"Resource": "arn:aws:sqs:*:*:goad-*"
},
{
"Effect": "Allow",
"Action": [
"lambda:Invoke*"
],
"Resource": [
"arn:aws:lambda:*:*:goad:*"
]
},
{
"Action": [
"logs:CreateLogGroup",
Expand Down

0 comments on commit 5c7009c

Please sign in to comment.