From 15df446ed207801b989c4bf961f18b87ea3adc6a Mon Sep 17 00:00:00 2001 From: GuptaNavdeep1983 Date: Mon, 12 Sep 2022 11:32:03 -0400 Subject: [PATCH] fix: updated policy statement syntax. (#42) --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 3d02510..732e023 100644 --- a/main.tf +++ b/main.tf @@ -55,7 +55,7 @@ data "aws_iam_policy_document" "github_actions_assume_role_policy" { principals { type = "AWS" - identifiers = ["arn:aws:iam::${each.key}:root"] + identifiers = ["arn:aws:iam::${statement.value}:root"] } } }