Skip to content

Commit

Permalink
Merge pull request #10 from PatientPing/update_codebuilder_perms
Browse files Browse the repository at this point in the history
Added lambda:ListVersionByFunction to codebuild policy
  • Loading branch information
dberkowicz authored Jun 3, 2020
2 parents d7627fd + dd4e36f commit 3fc956e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lambda_function/ci.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ resource "aws_iam_role_policy" "codebuild" {
{
"Effect": "Allow",
"Resource": "${aws_lambda_function.lambda.arn}",
"Action": "lambda:UpdateFunctionCode"
"Action": [
"lambda:UpdateFunctionCode",
"lambda:ListVersionsByFunction",
"lambda:UpdateAlias"
]
}
]
}
Expand Down

0 comments on commit 3fc956e

Please sign in to comment.