Data Source: aws_eks_node_groups#
Provides a list of EKS node groups names associated with an EKS cluster.
Example Usage#
data "aws_eks_node_groups" "example" {
cluster_name = "example"
}
data "aws_eks_node_group" "example" {
for_each = data.aws_eks_node_groups.example.names
cluster_name = "example"
node_group_name = each.value
}
Argument Reference#
cluster_name
- (Required) The name of the cluster.
Attribute Reference#
In addition to all arguments above, the following attributes are exported:
id
- Cluster name.names
- A set of all node group names in an EKS cluster.