Skip to content

Commit

Permalink
CCL-509 updated aws_iam_role to use environment (#173)
Browse files Browse the repository at this point in the history
* CCL-509 updated aws_iam_role to use environment

* CCL-509 updated aws_iam_role to use environment
  • Loading branch information
mynampatinaveen authored Sep 5, 2024
1 parent 6ec4585 commit 8a4daa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/products/static-site/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "aws_iam_role" "static_site_actions_push" {
}
Condition = {
StringLike = {
"token.actions.githubusercontent.com:sub" : "repo:${var.tenant_vars.repository}:ref:refs/heads/${var.tenant_vars.gitbranch}"
"token.actions.githubusercontent.com:sub" : "repo:${var.tenant_vars.repository}:environment:${var.tenant_vars.github_environment_name}"
"sts:RoleSessionName" : "GitHubActions"
}
StringEquals = {
Expand Down

0 comments on commit 8a4daa5

Please sign in to comment.