mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-05-01 04:44:29 +02:00
feat: Add outputs for autoscaling group names created to aid in autoscaling group tagging (#1953)
This commit is contained in:
@@ -171,6 +171,7 @@ module "eks_managed_node_group" {
|
||||
| <a name="output_launch_template_id"></a> [launch\_template\_id](#output\_launch\_template\_id) | The ID of the launch template |
|
||||
| <a name="output_launch_template_latest_version"></a> [launch\_template\_latest\_version](#output\_launch\_template\_latest\_version) | The latest version of the launch template |
|
||||
| <a name="output_node_group_arn"></a> [node\_group\_arn](#output\_node\_group\_arn) | Amazon Resource Name (ARN) of the EKS Node Group |
|
||||
| <a name="output_node_group_autoscaling_group_names"></a> [node\_group\_autoscaling\_group\_names](#output\_node\_group\_autoscaling\_group\_names) | List of the autoscaling group names |
|
||||
| <a name="output_node_group_id"></a> [node\_group\_id](#output\_node\_group\_id) | EKS Cluster name and EKS Node Group name separated by a colon (`:`) |
|
||||
| <a name="output_node_group_resources"></a> [node\_group\_resources](#output\_node\_group\_resources) | List of objects containing information about underlying resources |
|
||||
| <a name="output_node_group_status"></a> [node\_group\_status](#output\_node\_group\_status) | Status of the EKS Node Group |
|
||||
|
||||
@@ -36,6 +36,11 @@ output "node_group_resources" {
|
||||
value = try(aws_eks_node_group.this[0].resources, "")
|
||||
}
|
||||
|
||||
output "node_group_autoscaling_group_names" {
|
||||
description = "List of the autoscaling group names"
|
||||
value = try(flatten(aws_eks_node_group.this[0].resources[*].autoscaling_groups[*].name), [])
|
||||
}
|
||||
|
||||
output "node_group_status" {
|
||||
description = "Status of the EKS Node Group"
|
||||
value = try(aws_eks_node_group.this[0].arn, "")
|
||||
|
||||
Reference in New Issue
Block a user