Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11533

Access autoscaling_groups name attribute on aws_eks_node_group resource

$
0
0

Attribute seems to be nested in a list of lists, but I can’t get to the actual name value of the autoscaling_group. Tested in Output and I can get to the resources atttribute, but can’t seem to drill down any further without errors. This attribute seems to be structured differently than those on most resources I’ve worked with previously.

This output reference:

output "eks-ng-asg" {
  value       = "${aws_eks_node_group.cluster_node_group.0.resources[0]}"
  description = "EKS Node Group AutoScaling Groups"
}

Returns this response:

eks-ng-asg = {
  autoscaling_groups = [map[name:eks-aaaa12-1234-123a-0c13-26c51d00eabe]]
  remote_access_security_group_id =
}

I want to return just the ASG name value:
“eks-aaaa12-1234-123a-0c13-26c51d00eabe”

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 11533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>