Skip to content

Commit fb6e4e1

Browse files
committed
Adding node group iam role arns to outputs
1 parent 583c32d commit fb6e4e1

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
2121
- Fix cluster_oidc_issuer_url output from list to string (by @chewvader)
2222
- Fix idempotency issues for node groups with no remote_access configuration (by @jeffmhastings)
2323
- Added support to create IAM OpenID Connect Identity Provider to enable EKS Identity Roles for Service Accounts (IRSA). (by @alaa)
24+
- Adding node group iam role arns to outputs. (by @mukgupta)
2425

2526
#### Important notes
2627

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
220220
| config\_map\_aws\_auth | A kubernetes configuration to authenticate to this EKS cluster. |
221221
| kubeconfig | kubectl config file contents for this EKS cluster. |
222222
| kubeconfig\_filename | The filename of the generated kubectl config. |
223+
| node\_groups\_iam\_role\_arns | IAM role ARNs for EKS node groups |
223224
| worker\_autoscaling\_policy\_arn | ARN of the worker autoscaling IAM policy if `manage_worker_autoscaling_policy = true` |
224225
| worker\_autoscaling\_policy\_name | Name of the worker autoscaling IAM policy if `manage_worker_autoscaling_policy = true` |
225226
| worker\_iam\_instance\_profile\_arns | default IAM instance profile ARN for EKS worker groups |

outputs.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,11 @@ output "worker_autoscaling_policy_arn" {
157157
description = "ARN of the worker autoscaling IAM policy if `manage_worker_autoscaling_policy = true`"
158158
value = concat(aws_iam_policy.worker_autoscaling[*].arn, [""])[0]
159159
}
160+
161+
output "node_groups_iam_role_arns" {
162+
description = "IAM role ARNs for EKS node groups"
163+
value = {
164+
for node_group in aws_eks_node_group.workers :
165+
node_group.node_group_name => node_group.node_role_arn
166+
}
167+
}

0 commit comments

Comments
 (0)