Skip to content

Commit

Permalink
Rename some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Secretions committed Dec 3, 2024
1 parent 99f9a3c commit 6b45f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/eks/node-group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ resource "aws_iam_role" "nucleus" {
})
}

resource "aws_iam_role_policy_attachment" "aws_eks_nodes" {
resource "aws_iam_role_policy_attachment" "nucleus_eks_attach" {
for_each = toset(local.eks_aws_node_iam_policies)
policy_arn = "arn:${data.aws_partition.current.partition}:iam::aws:policy/${each.key}"
role = aws_iam_role.nucleus.name
}

resource "aws_iam_role_policy_attachment" "custom_eks_nodes" {
resource "aws_iam_role_policy_attachment" "nucleus_custom_attach" {
count = length(local.custom_node_policies)
policy_arn = element(local.custom_node_policies, count.index)
role = aws_iam_role.nucleus.name
Expand Down

0 comments on commit 6b45f26

Please sign in to comment.