Skip to content

Commit

Permalink
Add unit_test_trigger access to parameter (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
smallesh90 committed Dec 15, 2023
1 parent 64d3796 commit 76e3b21
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lambda_function/unit_test_trigger.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ resource "aws_iam_role_policy" "unit_test_codebuild" {
"logs:CreateLogStream",
"logs:PutLogEvents"
]
},
{
Effect = "Allow",
Action = [
"ssm:GetParameter*"
],
Resource = [
"arn:aws:ssm:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:parameter/cloudeng/infra/github/token"
]
}
]
})
Expand Down
9 changes: 9 additions & 0 deletions lambda_layer/unit_test_trigger.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ resource "aws_iam_role_policy" "unit_test_codebuild" {
"logs:CreateLogStream",
"logs:PutLogEvents"
]
},
{
Effect = "Allow",
Action = [
"ssm:GetParameter*"
],
Resource = [
"arn:aws:ssm:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:parameter/cloudeng/infra/github/token"
]
}
]
})
Expand Down

0 comments on commit 76e3b21

Please sign in to comment.