Adding node group iam role arns to outputs (#641)

This commit is contained in:
Mukesh Gupta
2019-12-20 21:20:29 +05:30
committed by Max Williams
parent b7ffc1b591
commit 7c8bcc967b
3 changed files with 10 additions and 0 deletions

View File

@@ -157,3 +157,11 @@ output "worker_autoscaling_policy_arn" {
description = "ARN of the worker autoscaling IAM policy if `manage_worker_autoscaling_policy = true`"
value = concat(aws_iam_policy.worker_autoscaling[*].arn, [""])[0]
}
output "node_groups_iam_role_arns" {
description = "IAM role ARNs for EKS node groups"
value = {
for node_group in aws_eks_node_group.workers :
node_group.node_group_name => node_group.node_role_arn
}
}