AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.eks.getNodeGroups
Explore with Pulumi AI
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, [, ]) => ({ ...__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}
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 = ;
});
Coming soon!
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,
opts: Optional[InvokeOptions] = None) -> GetNodeGroupsResult
def get_node_groups_output(cluster_name: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:eks/getNodeGroups:getNodeGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Name string - Name of the cluster.
- Cluster
Name string - Name of the cluster.
- cluster
Name String - Name of the cluster.
- cluster
Name string - Name of the cluster.
- cluster_
name str - Name of the cluster.
- cluster
Name String - Name of the cluster.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.