We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3dd03df + 60d729d commit 55609b4Copy full SHA for 55609b4
infra/iam.tf
@@ -69,10 +69,13 @@ resource "aws_iam_role" "auto_ops" {
69
Action = "sts:AssumeRoleWithWebIdentity",
70
Condition = {
71
StringEquals = {
72
- "token.actions.githubusercontent.com:aud" : "sts.amazonaws.com"
+ "token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
73
},
74
StringLike = {
75
- "token.actions.githubusercontent.com:sub" : "repo:NHSDigital/immunisation-fhir-api:*"
+ "token.actions.githubusercontent.com:sub": var.environment != "prod" ? [
76
+ "repo:NHSDigital/immunisation-fhir-api:*",
77
+ "repo:NHSDigital/imms_fhir_api_automation:*"
78
+ ] : ["repo:NHSDigital/immunisation-fhir-api:*"]
79
}
80
81
0 commit comments