Skip to content

Commit 9a11b8a

Browse files
Merge pull request #77 from NHSDigital/feature/CCM-8813_grafana
CCM-8742: Update IAM role component for grafana access role trust pol
2 parents d5f6b32 + 7ebaa32 commit 9a11b8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infrastructure/terraform/components/dnsroot/iam_role_grafana_access.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data "aws_iam_policy_document" "observability_grafana_role_assume_role_policy" {
99
effect = "Allow"
1010
principals {
1111
type = "AWS"
12-
identifiers = ["arn:aws:iam::${var.observability_account_id}:role/${local.csi}-grafana-workspace-role"]
12+
identifiers = [replace("arn:aws:iam::${var.observability_account_id}:role/${local.csi}-grafana-workspace-role", var.component, "acct")]
1313
}
1414
}
1515
}

0 commit comments

Comments
 (0)