Skip to content

Commit

Permalink
Merge pull request #8415 from ministryofjustice/feature/7907-add-cond…
Browse files Browse the repository at this point in the history
…ition-to-passrole

Add condition to `modernisation-platform-oidc-cicd` `iam:PassRole` permission
  • Loading branch information
dms1981 authored Nov 6, 2024
2 parents 4fb653a + 6659899 commit fdff945
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/environments/bootstrap/member-bootstrap/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,11 @@ data "aws_iam_policy_document" "policy" {
actions = ["iam:PassRole"]
effect = "Allow"
resources = ["*"]
condition {
test = "StringEquals"
values = ["ssm.amazonaws.com"]
variable = "iam:PassedToService"
}
}

statement {
Expand Down

0 comments on commit fdff945

Please sign in to comment.