Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Retrieve the EKS Node Groups associated with a named EKS cluster. This will allow you to pass a list of Node Group names to other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.eks.getNodeGroups({
clusterName: "example",
});
const exampleGetNodeGroup = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.eks.getNodeGroup({
clusterName: "example",
nodeGroupName: __value,
}) })));
import pulumi
import pulumi_aws as aws
example = aws.eks.get_node_groups(cluster_name="example")
example_get_node_group = {__key: aws.eks.get_node_group(cluster_name="example",
node_group_name=__value) for __key, __value in example.names}
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Eks.GetNodeGroups.Invoke(new()
{
ClusterName = "example",
});
var exampleGetNodeGroup = ;
});
Example coming soon!
Example coming soon!
Using getNodeGroups
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNodeGroups(args: GetNodeGroupsArgs, opts?: InvokeOptions): Promise<GetNodeGroupsResult>
function getNodeGroupsOutput(args: GetNodeGroupsOutputArgs, opts?: InvokeOptions): Output<GetNodeGroupsResult>def get_node_groups(cluster_name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNodeGroupsResult
def get_node_groups_output(cluster_name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodeGroupsResult]func GetNodeGroups(ctx *Context, args *GetNodeGroupsArgs, opts ...InvokeOption) (*GetNodeGroupsResult, error)
func GetNodeGroupsOutput(ctx *Context, args *GetNodeGroupsOutputArgs, opts ...InvokeOption) GetNodeGroupsResultOutput> Note: This function is named GetNodeGroups in the Go SDK.
public static class GetNodeGroups
{
public static Task<GetNodeGroupsResult> InvokeAsync(GetNodeGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetNodeGroupsResult> Invoke(GetNodeGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNodeGroupsResult> getNodeGroups(GetNodeGroupsArgs args, InvokeOptions options)
public static Output<GetNodeGroupsResult> getNodeGroups(GetNodeGroupsArgs args, InvokeOptions options)
fn::invoke:
function: aws:eks/getNodeGroups:getNodeGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Name string - Name of the cluster.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Cluster
Name string - Name of the cluster.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- cluster
Name String - Name of the cluster.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- cluster
Name string - Name of the cluster.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- cluster_
name str - Name of the cluster.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- cluster
Name String - Name of the cluster.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getNodeGroups Result
The following output properties are available:
- Cluster
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Names List<string>
- Set of all node group names in an EKS Cluster.
- Region string
- Cluster
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Names []string
- Set of all node group names in an EKS Cluster.
- Region string
- cluster
Name String - id String
- The provider-assigned unique ID for this managed resource.
- names List<String>
- Set of all node group names in an EKS Cluster.
- region String
- cluster
Name string - id string
- The provider-assigned unique ID for this managed resource.
- names string[]
- Set of all node group names in an EKS Cluster.
- region string
- cluster_
name str - id str
- The provider-assigned unique ID for this managed resource.
- names Sequence[str]
- Set of all node group names in an EKS Cluster.
- region str
- cluster
Name String - id String
- The provider-assigned unique ID for this managed resource.
- names List<String>
- Set of all node group names in an EKS Cluster.
- region String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
