Skip to content

Commit c80d782

Browse files
committed
fix: Corrects from test/validation on existing clusters
1 parent 8c2b5e9 commit c80d782

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ locals {
456456

457457
# Security groups for pods
458458
eks_sgpp_iam_role_policies = { for k, v in {
459-
AmazonEKSClusterPolicy = "${local.iam_role_policy_prefix}/AmazonEKSVPCResourceController"
459+
AmazonEKSVPCResourceController = "${local.iam_role_policy_prefix}/AmazonEKSVPCResourceController"
460460
} : k => v if var.enable_security_groups_for_pods && !local.create_outposts_local_cluster && !local.auto_mode_enabled }
461461
}
462462

outputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,17 @@ output "cluster_iam_role_unique_id" {
196196

197197
output "node_iam_role_name" {
198198
description = "EKS Auto node IAM role name"
199-
value = try(aws_iam_role.this[0].name, null)
199+
value = try(aws_iam_role.eks_auto[0].name, null)
200200
}
201201

202202
output "node_iam_role_arn" {
203203
description = "EKS Auto node IAM role ARN"
204-
value = try(aws_iam_role.this[0].arn, null)
204+
value = try(aws_iam_role.eks_auto[0].arn, null)
205205
}
206206

207207
output "node_iam_role_unique_id" {
208208
description = "Stable and unique string identifying the IAM role"
209-
value = try(aws_iam_role.this[0].unique_id, null)
209+
value = try(aws_iam_role.eks_auto[0].unique_id, null)
210210
}
211211

212212
################################################################################

0 commit comments

Comments
 (0)