Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,19 @@ output "node_groups_iam_role_arns" {
node_group.node_group_name => node_group.node_role_arn
}
}

output "node_groups" {
value = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add description ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Was planning on adding a docs .md describing matters in more detail. First I wanted to see if there's feedback on the output structure.

for worker in aws_eks_node_group.workers:
{
# values set/generated by terraform-aws-eks
iam_role_arn = worker.node_role_arn,
name = worker.node_group_name,
# tf aws_eks_node_group attributes
arn = worker.arn,
id = worker.arn,
status = worker.status,
resources = worker.resources,
}
]
}