Skip to content

Commit

Permalink
Fixed typo in additional_iam_policy_arns
Browse files Browse the repository at this point in the history
  • Loading branch information
jrsdav authored Jul 11, 2022
1 parent b652ac4 commit 0f3bfc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/managed-cloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ locals {
arn_like_vpcs_str = format("[%s]", join(",", local.arn_like_vpcs))
tag_set = merge({ Vendor = "StreamNative", SNVersion = var.sn_policy_version }, var.tags)

additional_iam_policiy_arns = distinct(compact(var.additional_iam_policiy_arns))
additional_iam_policy_arns = distinct(compact(var.additional_iam_policy_arns))
default_allowed_iam_policies = compact([
"arn:${var.partition}:iam::${local.account_id}:policy/StreamNative/*",
"arn:${var.partition}:iam::aws:policy/AmazonEKSClusterPolicy",
Expand All @@ -57,7 +57,7 @@ locals {
"arn:${var.partition}:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
"arn:${var.partition}:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy"
])
allowed_iam_policies = join(", ", formatlist("\"%s\"", distinct(concat(local.additional_iam_policiy_arns, local.default_allowed_iam_policies))))
allowed_iam_policies = join(", ", formatlist("\"%s\"", distinct(concat(local.additional_iam_policy_arns, local.default_allowed_iam_policies))))

}

Expand Down

0 comments on commit 0f3bfc9

Please sign in to comment.