aws.eks.NodeGroup
Explore with Pulumi AI
Manages an EKS Node Group, which can provision and optionally update an Auto Scaling Group of Kubernetes worker nodes compatible with EKS. Additional documentation about this functionality can be found in the EKS User Guide.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.eks.NodeGroup("example", {
    clusterName: exampleAwsEksCluster.name,
    nodeGroupName: "example",
    nodeRoleArn: exampleAwsIamRole.arn,
    subnetIds: exampleAwsSubnet.map(__item => __item.id),
    scalingConfig: {
        desiredSize: 1,
        maxSize: 2,
        minSize: 1,
    },
    updateConfig: {
        maxUnavailable: 1,
    },
}, {
    dependsOn: [
        example_AmazonEKSWorkerNodePolicy,
        example_AmazonEKSCNIPolicy,
        example_AmazonEC2ContainerRegistryReadOnly,
    ],
});
import pulumi
import pulumi_aws as aws
example = aws.eks.NodeGroup("example",
    cluster_name=example_aws_eks_cluster["name"],
    node_group_name="example",
    node_role_arn=example_aws_iam_role["arn"],
    subnet_ids=[__item["id"] for __item in example_aws_subnet],
    scaling_config={
        "desired_size": 1,
        "max_size": 2,
        "min_size": 1,
    },
    update_config={
        "max_unavailable": 1,
    },
    opts = pulumi.ResourceOptions(depends_on=[
            example__amazon_eks_worker_node_policy,
            example__amazon_ekscni_policy,
            example__amazon_ec2_container_registry_read_only,
        ]))
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/eks"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
var splat0 []interface{}
for _, val0 := range exampleAwsSubnet {
splat0 = append(splat0, val0.Id)
}
_, err := eks.NewNodeGroup(ctx, "example", &eks.NodeGroupArgs{
ClusterName: pulumi.Any(exampleAwsEksCluster.Name),
NodeGroupName: pulumi.String("example"),
NodeRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
SubnetIds: toPulumiArray(splat0),
ScalingConfig: &eks.NodeGroupScalingConfigArgs{
DesiredSize: pulumi.Int(1),
MaxSize: pulumi.Int(2),
MinSize: pulumi.Int(1),
},
UpdateConfig: &eks.NodeGroupUpdateConfigArgs{
MaxUnavailable: pulumi.Int(1),
},
}, pulumi.DependsOn([]pulumi.Resource{
example_AmazonEKSWorkerNodePolicy,
example_AmazonEKSCNIPolicy,
example_AmazonEC2ContainerRegistryReadOnly,
}))
if err != nil {
return err
}
return nil
})
}
func toPulumiArray(arr []) pulumi.Array {
var pulumiArr pulumi.Array
for _, v := range arr {
pulumiArr = append(pulumiArr, pulumi.(v))
}
return pulumiArr
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = new Aws.Eks.NodeGroup("example", new()
    {
        ClusterName = exampleAwsEksCluster.Name,
        NodeGroupName = "example",
        NodeRoleArn = exampleAwsIamRole.Arn,
        SubnetIds = exampleAwsSubnet.Select(__item => __item.Id).ToList(),
        ScalingConfig = new Aws.Eks.Inputs.NodeGroupScalingConfigArgs
        {
            DesiredSize = 1,
            MaxSize = 2,
            MinSize = 1,
        },
        UpdateConfig = new Aws.Eks.Inputs.NodeGroupUpdateConfigArgs
        {
            MaxUnavailable = 1,
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            example_AmazonEKSWorkerNodePolicy,
            example_AmazonEKSCNIPolicy,
            example_AmazonEC2ContainerRegistryReadOnly,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.eks.NodeGroup;
import com.pulumi.aws.eks.NodeGroupArgs;
import com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs;
import com.pulumi.aws.eks.inputs.NodeGroupUpdateConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new NodeGroup("example", NodeGroupArgs.builder()
            .clusterName(exampleAwsEksCluster.name())
            .nodeGroupName("example")
            .nodeRoleArn(exampleAwsIamRole.arn())
            .subnetIds(exampleAwsSubnet.stream().map(element -> element.id()).collect(toList()))
            .scalingConfig(NodeGroupScalingConfigArgs.builder()
                .desiredSize(1)
                .maxSize(2)
                .minSize(1)
                .build())
            .updateConfig(NodeGroupUpdateConfigArgs.builder()
                .maxUnavailable(1)
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(                
                    example_AmazonEKSWorkerNodePolicy,
                    example_AmazonEKSCNIPolicy,
                    example_AmazonEC2ContainerRegistryReadOnly)
                .build());
    }
}
Coming soon!
Ignoring Changes to Desired Size
You can utilize ignoreChanges create an EKS Node Group with an initial size of running instances, then ignore any changes to that count caused externally (e.g. Application Autoscaling).
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.eks.NodeGroup("example", {scalingConfig: {
    desiredSize: 2,
}});
import pulumi
import pulumi_aws as aws
example = aws.eks.NodeGroup("example", scaling_config={
    "desired_size": 2,
})
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/eks"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eks.NewNodeGroup(ctx, "example", &eks.NodeGroupArgs{
			ScalingConfig: &eks.NodeGroupScalingConfigArgs{
				DesiredSize: pulumi.Int(2),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = new Aws.Eks.NodeGroup("example", new()
    {
        ScalingConfig = new Aws.Eks.Inputs.NodeGroupScalingConfigArgs
        {
            DesiredSize = 2,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.eks.NodeGroup;
import com.pulumi.aws.eks.NodeGroupArgs;
import com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new NodeGroup("example", NodeGroupArgs.builder()
            .scalingConfig(NodeGroupScalingConfigArgs.builder()
                .desiredSize(2)
                .build())
            .build());
    }
}
resources:
  example:
    type: aws:eks:NodeGroup
    properties:
      scalingConfig:
        desiredSize: 2
Example IAM Role for EKS Node Group
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.iam.Role("example", {
    name: "eks-node-group-example",
    assumeRolePolicy: JSON.stringify({
        Statement: [{
            Action: "sts:AssumeRole",
            Effect: "Allow",
            Principal: {
                Service: "ec2.amazonaws.com",
            },
        }],
        Version: "2012-10-17",
    }),
});
const example_AmazonEKSWorkerNodePolicy = new aws.iam.RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy", {
    policyArn: "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy",
    role: example.name,
});
const example_AmazonEKSCNIPolicy = new aws.iam.RolePolicyAttachment("example-AmazonEKS_CNI_Policy", {
    policyArn: "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
    role: example.name,
});
const example_AmazonEC2ContainerRegistryReadOnly = new aws.iam.RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly", {
    policyArn: "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
    role: example.name,
});
import pulumi
import json
import pulumi_aws as aws
example = aws.iam.Role("example",
    name="eks-node-group-example",
    assume_role_policy=json.dumps({
        "Statement": [{
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
                "Service": "ec2.amazonaws.com",
            },
        }],
        "Version": "2012-10-17",
    }))
example__amazon_eks_worker_node_policy = aws.iam.RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy",
    policy_arn="arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy",
    role=example.name)
example__amazon_ekscni_policy = aws.iam.RolePolicyAttachment("example-AmazonEKS_CNI_Policy",
    policy_arn="arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
    role=example.name)
example__amazon_ec2_container_registry_read_only = aws.iam.RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly",
    policy_arn="arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
    role=example.name)
package main
import (
	"encoding/json"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": "sts:AssumeRole",
					"Effect": "Allow",
					"Principal": map[string]interface{}{
						"Service": "ec2.amazonaws.com",
					},
				},
			},
			"Version": "2012-10-17",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		example, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
			Name:             pulumi.String("eks-node-group-example"),
			AssumeRolePolicy: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		_, err = iam.NewRolePolicyAttachment(ctx, "example-AmazonEKSWorkerNodePolicy", &iam.RolePolicyAttachmentArgs{
			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy"),
			Role:      example.Name,
		})
		if err != nil {
			return err
		}
		_, err = iam.NewRolePolicyAttachment(ctx, "example-AmazonEKS_CNI_Policy", &iam.RolePolicyAttachmentArgs{
			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"),
			Role:      example.Name,
		})
		if err != nil {
			return err
		}
		_, err = iam.NewRolePolicyAttachment(ctx, "example-AmazonEC2ContainerRegistryReadOnly", &iam.RolePolicyAttachmentArgs{
			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"),
			Role:      example.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = new Aws.Iam.Role("example", new()
    {
        Name = "eks-node-group-example",
        AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
        {
            ["Statement"] = new[]
            {
                new Dictionary<string, object?>
                {
                    ["Action"] = "sts:AssumeRole",
                    ["Effect"] = "Allow",
                    ["Principal"] = new Dictionary<string, object?>
                    {
                        ["Service"] = "ec2.amazonaws.com",
                    },
                },
            },
            ["Version"] = "2012-10-17",
        }),
    });
    var example_AmazonEKSWorkerNodePolicy = new Aws.Iam.RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy", new()
    {
        PolicyArn = "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy",
        Role = example.Name,
    });
    var example_AmazonEKSCNIPolicy = new Aws.Iam.RolePolicyAttachment("example-AmazonEKS_CNI_Policy", new()
    {
        PolicyArn = "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
        Role = example.Name,
    });
    var example_AmazonEC2ContainerRegistryReadOnly = new Aws.Iam.RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly", new()
    {
        PolicyArn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
        Role = example.Name,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.iam.RolePolicyAttachment;
import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new Role("example", RoleArgs.builder()
            .name("eks-node-group-example")
            .assumeRolePolicy(serializeJson(
                jsonObject(
                    jsonProperty("Statement", jsonArray(jsonObject(
                        jsonProperty("Action", "sts:AssumeRole"),
                        jsonProperty("Effect", "Allow"),
                        jsonProperty("Principal", jsonObject(
                            jsonProperty("Service", "ec2.amazonaws.com")
                        ))
                    ))),
                    jsonProperty("Version", "2012-10-17")
                )))
            .build());
        var example_AmazonEKSWorkerNodePolicy = new RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy", RolePolicyAttachmentArgs.builder()
            .policyArn("arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy")
            .role(example.name())
            .build());
        var example_AmazonEKSCNIPolicy = new RolePolicyAttachment("example-AmazonEKSCNIPolicy", RolePolicyAttachmentArgs.builder()
            .policyArn("arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy")
            .role(example.name())
            .build());
        var example_AmazonEC2ContainerRegistryReadOnly = new RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly", RolePolicyAttachmentArgs.builder()
            .policyArn("arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly")
            .role(example.name())
            .build());
    }
}
resources:
  example:
    type: aws:iam:Role
    properties:
      name: eks-node-group-example
      assumeRolePolicy:
        fn::toJSON:
          Statement:
            - Action: sts:AssumeRole
              Effect: Allow
              Principal:
                Service: ec2.amazonaws.com
          Version: 2012-10-17
  example-AmazonEKSWorkerNodePolicy:
    type: aws:iam:RolePolicyAttachment
    properties:
      policyArn: arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
      role: ${example.name}
  example-AmazonEKSCNIPolicy:
    type: aws:iam:RolePolicyAttachment
    name: example-AmazonEKS_CNI_Policy
    properties:
      policyArn: arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
      role: ${example.name}
  example-AmazonEC2ContainerRegistryReadOnly:
    type: aws:iam:RolePolicyAttachment
    properties:
      policyArn: arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly
      role: ${example.name}
Example Subnets for EKS Node Group
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";
const available = aws.getAvailabilityZones({
    state: "available",
});
const example: aws.ec2.Subnet[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
    example.push(new aws.ec2.Subnet(`example-${range.value}`, {
        availabilityZone: available.then(available => available.names[range.value]),
        cidrBlock: std.cidrsubnet({
            input: exampleAwsVpc.cidrBlock,
            newbits: 8,
            netnum: range.value,
        }).then(invoke => invoke.result),
        vpcId: exampleAwsVpc.id,
    }));
}
import pulumi
import pulumi_aws as aws
import pulumi_std as std
available = aws.get_availability_zones(state="available")
example = []
for range in [{"value": i} for i in range(0, 2)]:
    example.append(aws.ec2.Subnet(f"example-{range['value']}",
        availability_zone=available.names[range["value"]],
        cidr_block=std.cidrsubnet(input=example_aws_vpc["cidrBlock"],
            newbits=8,
            netnum=range["value"]).result,
        vpc_id=example_aws_vpc["id"]))
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
			State: pulumi.StringRef("available"),
		}, nil)
		if err != nil {
			return err
		}
		invokeCidrsubnet, err := std.Cidrsubnet(ctx, &std.CidrsubnetArgs{
			Input:   exampleAwsVpc.CidrBlock,
			Newbits: 8,
			Netnum:  val0,
		}, nil)
		if err != nil {
			return err
		}
		var example []*ec2.Subnet
		for index := 0; index < 2; index++ {
			key0 := index
			val0 := index
			__res, err := ec2.NewSubnet(ctx, fmt.Sprintf("example-%v", key0), &ec2.SubnetArgs{
				AvailabilityZone: pulumi.String(available.Names[val0]),
				CidrBlock:        pulumi.String(invokeCidrsubnet.Result),
				VpcId:            pulumi.Any(exampleAwsVpc.Id),
			})
			if err != nil {
				return err
			}
			example = append(example, __res)
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() => 
{
    var available = Aws.GetAvailabilityZones.Invoke(new()
    {
        State = "available",
    });
    var example = new List<Aws.Ec2.Subnet>();
    for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        example.Add(new Aws.Ec2.Subnet($"example-{range.Value}", new()
        {
            AvailabilityZone = available.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names)[range.Value],
            CidrBlock = Std.Cidrsubnet.Invoke(new()
            {
                Input = exampleAwsVpc.CidrBlock,
                Newbits = 8,
                Netnum = range.Value,
            }).Apply(invoke => invoke.Result),
            VpcId = exampleAwsVpc.Id,
        }));
    }
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetAvailabilityZonesArgs;
import com.pulumi.aws.ec2.Subnet;
import com.pulumi.aws.ec2.SubnetArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder()
            .state("available")
            .build());
        for (var i = 0; i < 2; i++) {
            new Subnet("example-" + i, SubnetArgs.builder()
                .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names())[range.value()])
                .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder()
                    .input(exampleAwsVpc.cidrBlock())
                    .newbits(8)
                    .netnum(range.value())
                    .build()).result())
                .vpcId(exampleAwsVpc.id())
                .build());
        
}
    }
}
Coming soon!
Create NodeGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NodeGroup(name: string, args: NodeGroupArgs, opts?: CustomResourceOptions);@overload
def NodeGroup(resource_name: str,
              args: NodeGroupArgs,
              opts: Optional[ResourceOptions] = None)
@overload
def NodeGroup(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              node_role_arn: Optional[str] = None,
              subnet_ids: Optional[Sequence[str]] = None,
              cluster_name: Optional[str] = None,
              scaling_config: Optional[NodeGroupScalingConfigArgs] = None,
              instance_types: Optional[Sequence[str]] = None,
              force_update_version: Optional[bool] = None,
              labels: Optional[Mapping[str, str]] = None,
              launch_template: Optional[NodeGroupLaunchTemplateArgs] = None,
              node_group_name: Optional[str] = None,
              node_group_name_prefix: Optional[str] = None,
              node_repair_config: Optional[NodeGroupNodeRepairConfigArgs] = None,
              ami_type: Optional[str] = None,
              release_version: Optional[str] = None,
              remote_access: Optional[NodeGroupRemoteAccessArgs] = None,
              disk_size: Optional[int] = None,
              capacity_type: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              taints: Optional[Sequence[NodeGroupTaintArgs]] = None,
              update_config: Optional[NodeGroupUpdateConfigArgs] = None,
              version: Optional[str] = None)func NewNodeGroup(ctx *Context, name string, args NodeGroupArgs, opts ...ResourceOption) (*NodeGroup, error)public NodeGroup(string name, NodeGroupArgs args, CustomResourceOptions? opts = null)
public NodeGroup(String name, NodeGroupArgs args)
public NodeGroup(String name, NodeGroupArgs args, CustomResourceOptions options)
type: aws:eks:NodeGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NodeGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NodeGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NodeGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NodeGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NodeGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var nodeGroupResource = new Aws.Eks.NodeGroup("nodeGroupResource", new()
{
    NodeRoleArn = "string",
    SubnetIds = new[]
    {
        "string",
    },
    ClusterName = "string",
    ScalingConfig = new Aws.Eks.Inputs.NodeGroupScalingConfigArgs
    {
        DesiredSize = 0,
        MaxSize = 0,
        MinSize = 0,
    },
    InstanceTypes = new[]
    {
        "string",
    },
    ForceUpdateVersion = false,
    Labels = 
    {
        { "string", "string" },
    },
    LaunchTemplate = new Aws.Eks.Inputs.NodeGroupLaunchTemplateArgs
    {
        Version = "string",
        Id = "string",
        Name = "string",
    },
    NodeGroupName = "string",
    NodeGroupNamePrefix = "string",
    NodeRepairConfig = new Aws.Eks.Inputs.NodeGroupNodeRepairConfigArgs
    {
        Enabled = false,
    },
    AmiType = "string",
    ReleaseVersion = "string",
    RemoteAccess = new Aws.Eks.Inputs.NodeGroupRemoteAccessArgs
    {
        Ec2SshKey = "string",
        SourceSecurityGroupIds = new[]
        {
            "string",
        },
    },
    DiskSize = 0,
    CapacityType = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Taints = new[]
    {
        new Aws.Eks.Inputs.NodeGroupTaintArgs
        {
            Effect = "string",
            Key = "string",
            Value = "string",
        },
    },
    UpdateConfig = new Aws.Eks.Inputs.NodeGroupUpdateConfigArgs
    {
        MaxUnavailable = 0,
        MaxUnavailablePercentage = 0,
    },
    Version = "string",
});
example, err := eks.NewNodeGroup(ctx, "nodeGroupResource", &eks.NodeGroupArgs{
	NodeRoleArn: pulumi.String("string"),
	SubnetIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	ClusterName: pulumi.String("string"),
	ScalingConfig: &eks.NodeGroupScalingConfigArgs{
		DesiredSize: pulumi.Int(0),
		MaxSize:     pulumi.Int(0),
		MinSize:     pulumi.Int(0),
	},
	InstanceTypes: pulumi.StringArray{
		pulumi.String("string"),
	},
	ForceUpdateVersion: pulumi.Bool(false),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	LaunchTemplate: &eks.NodeGroupLaunchTemplateArgs{
		Version: pulumi.String("string"),
		Id:      pulumi.String("string"),
		Name:    pulumi.String("string"),
	},
	NodeGroupName:       pulumi.String("string"),
	NodeGroupNamePrefix: pulumi.String("string"),
	NodeRepairConfig: &eks.NodeGroupNodeRepairConfigArgs{
		Enabled: pulumi.Bool(false),
	},
	AmiType:        pulumi.String("string"),
	ReleaseVersion: pulumi.String("string"),
	RemoteAccess: &eks.NodeGroupRemoteAccessArgs{
		Ec2SshKey: pulumi.String("string"),
		SourceSecurityGroupIds: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	DiskSize:     pulumi.Int(0),
	CapacityType: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Taints: eks.NodeGroupTaintArray{
		&eks.NodeGroupTaintArgs{
			Effect: pulumi.String("string"),
			Key:    pulumi.String("string"),
			Value:  pulumi.String("string"),
		},
	},
	UpdateConfig: &eks.NodeGroupUpdateConfigArgs{
		MaxUnavailable:           pulumi.Int(0),
		MaxUnavailablePercentage: pulumi.Int(0),
	},
	Version: pulumi.String("string"),
})
var nodeGroupResource = new NodeGroup("nodeGroupResource", NodeGroupArgs.builder()
    .nodeRoleArn("string")
    .subnetIds("string")
    .clusterName("string")
    .scalingConfig(NodeGroupScalingConfigArgs.builder()
        .desiredSize(0)
        .maxSize(0)
        .minSize(0)
        .build())
    .instanceTypes("string")
    .forceUpdateVersion(false)
    .labels(Map.of("string", "string"))
    .launchTemplate(NodeGroupLaunchTemplateArgs.builder()
        .version("string")
        .id("string")
        .name("string")
        .build())
    .nodeGroupName("string")
    .nodeGroupNamePrefix("string")
    .nodeRepairConfig(NodeGroupNodeRepairConfigArgs.builder()
        .enabled(false)
        .build())
    .amiType("string")
    .releaseVersion("string")
    .remoteAccess(NodeGroupRemoteAccessArgs.builder()
        .ec2SshKey("string")
        .sourceSecurityGroupIds("string")
        .build())
    .diskSize(0)
    .capacityType("string")
    .tags(Map.of("string", "string"))
    .taints(NodeGroupTaintArgs.builder()
        .effect("string")
        .key("string")
        .value("string")
        .build())
    .updateConfig(NodeGroupUpdateConfigArgs.builder()
        .maxUnavailable(0)
        .maxUnavailablePercentage(0)
        .build())
    .version("string")
    .build());
node_group_resource = aws.eks.NodeGroup("nodeGroupResource",
    node_role_arn="string",
    subnet_ids=["string"],
    cluster_name="string",
    scaling_config={
        "desired_size": 0,
        "max_size": 0,
        "min_size": 0,
    },
    instance_types=["string"],
    force_update_version=False,
    labels={
        "string": "string",
    },
    launch_template={
        "version": "string",
        "id": "string",
        "name": "string",
    },
    node_group_name="string",
    node_group_name_prefix="string",
    node_repair_config={
        "enabled": False,
    },
    ami_type="string",
    release_version="string",
    remote_access={
        "ec2_ssh_key": "string",
        "source_security_group_ids": ["string"],
    },
    disk_size=0,
    capacity_type="string",
    tags={
        "string": "string",
    },
    taints=[{
        "effect": "string",
        "key": "string",
        "value": "string",
    }],
    update_config={
        "max_unavailable": 0,
        "max_unavailable_percentage": 0,
    },
    version="string")
const nodeGroupResource = new aws.eks.NodeGroup("nodeGroupResource", {
    nodeRoleArn: "string",
    subnetIds: ["string"],
    clusterName: "string",
    scalingConfig: {
        desiredSize: 0,
        maxSize: 0,
        minSize: 0,
    },
    instanceTypes: ["string"],
    forceUpdateVersion: false,
    labels: {
        string: "string",
    },
    launchTemplate: {
        version: "string",
        id: "string",
        name: "string",
    },
    nodeGroupName: "string",
    nodeGroupNamePrefix: "string",
    nodeRepairConfig: {
        enabled: false,
    },
    amiType: "string",
    releaseVersion: "string",
    remoteAccess: {
        ec2SshKey: "string",
        sourceSecurityGroupIds: ["string"],
    },
    diskSize: 0,
    capacityType: "string",
    tags: {
        string: "string",
    },
    taints: [{
        effect: "string",
        key: "string",
        value: "string",
    }],
    updateConfig: {
        maxUnavailable: 0,
        maxUnavailablePercentage: 0,
    },
    version: "string",
});
type: aws:eks:NodeGroup
properties:
    amiType: string
    capacityType: string
    clusterName: string
    diskSize: 0
    forceUpdateVersion: false
    instanceTypes:
        - string
    labels:
        string: string
    launchTemplate:
        id: string
        name: string
        version: string
    nodeGroupName: string
    nodeGroupNamePrefix: string
    nodeRepairConfig:
        enabled: false
    nodeRoleArn: string
    releaseVersion: string
    remoteAccess:
        ec2SshKey: string
        sourceSecurityGroupIds:
            - string
    scalingConfig:
        desiredSize: 0
        maxSize: 0
        minSize: 0
    subnetIds:
        - string
    tags:
        string: string
    taints:
        - effect: string
          key: string
          value: string
    updateConfig:
        maxUnavailable: 0
        maxUnavailablePercentage: 0
    version: string
NodeGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NodeGroup resource accepts the following input properties:
- ClusterName string
- Name of the EKS Cluster.
- NodeRole stringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- ScalingConfig NodeGroup Scaling Config 
- Configuration block with scaling settings. See scaling_configbelow for details.
- SubnetIds List<string>
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- AmiType string
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- CapacityType string
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- DiskSize int
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- ForceUpdate boolVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- InstanceTypes List<string>
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- Labels Dictionary<string, string>
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- LaunchTemplate NodeGroup Launch Template 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- NodeGroup stringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- NodeGroup stringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- NodeRepair NodeConfig Group Node Repair Config 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- ReleaseVersion string
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- RemoteAccess NodeGroup Remote Access 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Taints
List<NodeGroup Taint> 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- UpdateConfig NodeGroup Update Config 
- Configuration block with update settings. See update_configbelow for details.
- Version string
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- ClusterName string
- Name of the EKS Cluster.
- NodeRole stringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- ScalingConfig NodeGroup Scaling Config Args 
- Configuration block with scaling settings. See scaling_configbelow for details.
- SubnetIds []string
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- AmiType string
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- CapacityType string
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- DiskSize int
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- ForceUpdate boolVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- InstanceTypes []string
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- Labels map[string]string
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- LaunchTemplate NodeGroup Launch Template Args 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- NodeGroup stringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- NodeGroup stringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- NodeRepair NodeConfig Group Node Repair Config Args 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- ReleaseVersion string
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- RemoteAccess NodeGroup Remote Access Args 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- map[string]string
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Taints
[]NodeGroup Taint Args 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- UpdateConfig NodeGroup Update Config Args 
- Configuration block with update settings. See update_configbelow for details.
- Version string
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- clusterName String
- Name of the EKS Cluster.
- nodeRole StringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- scalingConfig NodeGroup Scaling Config 
- Configuration block with scaling settings. See scaling_configbelow for details.
- subnetIds List<String>
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- amiType String
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- capacityType String
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- diskSize Integer
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- forceUpdate BooleanVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instanceTypes List<String>
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels Map<String,String>
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launchTemplate NodeGroup Launch Template 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- nodeGroup StringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- nodeGroup StringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- nodeRepair NodeConfig Group Node Repair Config 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- releaseVersion String
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remoteAccess NodeGroup Remote Access 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- taints
List<NodeGroup Taint> 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- updateConfig NodeGroup Update Config 
- Configuration block with update settings. See update_configbelow for details.
- version String
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- clusterName string
- Name of the EKS Cluster.
- nodeRole stringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- scalingConfig NodeGroup Scaling Config 
- Configuration block with scaling settings. See scaling_configbelow for details.
- subnetIds string[]
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- amiType string
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- capacityType string
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- diskSize number
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- forceUpdate booleanVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instanceTypes string[]
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels {[key: string]: string}
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launchTemplate NodeGroup Launch Template 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- nodeGroup stringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- nodeGroup stringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- nodeRepair NodeConfig Group Node Repair Config 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- releaseVersion string
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remoteAccess NodeGroup Remote Access 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- taints
NodeGroup Taint[] 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- updateConfig NodeGroup Update Config 
- Configuration block with update settings. See update_configbelow for details.
- version string
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- cluster_name str
- Name of the EKS Cluster.
- node_role_ strarn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- scaling_config NodeGroup Scaling Config Args 
- Configuration block with scaling settings. See scaling_configbelow for details.
- subnet_ids Sequence[str]
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- ami_type str
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- capacity_type str
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- disk_size int
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- force_update_ boolversion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instance_types Sequence[str]
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels Mapping[str, str]
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launch_template NodeGroup Launch Template Args 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- node_group_ strname 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- node_group_ strname_ prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- node_repair_ Nodeconfig Group Node Repair Config Args 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- release_version str
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remote_access NodeGroup Remote Access Args 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- taints
Sequence[NodeGroup Taint Args] 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- update_config NodeGroup Update Config Args 
- Configuration block with update settings. See update_configbelow for details.
- version str
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- clusterName String
- Name of the EKS Cluster.
- nodeRole StringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- scalingConfig Property Map
- Configuration block with scaling settings. See scaling_configbelow for details.
- subnetIds List<String>
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- amiType String
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- capacityType String
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- diskSize Number
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- forceUpdate BooleanVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instanceTypes List<String>
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels Map<String>
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launchTemplate Property Map
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- nodeGroup StringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- nodeGroup StringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- nodeRepair Property MapConfig 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- releaseVersion String
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remoteAccess Property Map
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- Map<String>
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- taints List<Property Map>
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- updateConfig Property Map
- Configuration block with update settings. See update_configbelow for details.
- version String
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
Outputs
All input properties are implicitly available as output properties. Additionally, the NodeGroup resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of the EKS Node Group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resources
List<NodeGroup Resource> 
- List of objects containing information about underlying resources.
- Status string
- Status of the EKS Node Group.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- Amazon Resource Name (ARN) of the EKS Node Group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resources
[]NodeGroup Resource 
- List of objects containing information about underlying resources.
- Status string
- Status of the EKS Node Group.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- Amazon Resource Name (ARN) of the EKS Node Group.
- id String
- The provider-assigned unique ID for this managed resource.
- resources
List<NodeGroup Resource> 
- List of objects containing information about underlying resources.
- status String
- Status of the EKS Node Group.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- Amazon Resource Name (ARN) of the EKS Node Group.
- id string
- The provider-assigned unique ID for this managed resource.
- resources
NodeGroup Resource[] 
- List of objects containing information about underlying resources.
- status string
- Status of the EKS Node Group.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- Amazon Resource Name (ARN) of the EKS Node Group.
- id str
- The provider-assigned unique ID for this managed resource.
- resources
Sequence[NodeGroup Resource] 
- List of objects containing information about underlying resources.
- status str
- Status of the EKS Node Group.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- Amazon Resource Name (ARN) of the EKS Node Group.
- id String
- The provider-assigned unique ID for this managed resource.
- resources List<Property Map>
- List of objects containing information about underlying resources.
- status String
- Status of the EKS Node Group.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing NodeGroup Resource
Get an existing NodeGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NodeGroupState, opts?: CustomResourceOptions): NodeGroup@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ami_type: Optional[str] = None,
        arn: Optional[str] = None,
        capacity_type: Optional[str] = None,
        cluster_name: Optional[str] = None,
        disk_size: Optional[int] = None,
        force_update_version: Optional[bool] = None,
        instance_types: Optional[Sequence[str]] = None,
        labels: Optional[Mapping[str, str]] = None,
        launch_template: Optional[NodeGroupLaunchTemplateArgs] = None,
        node_group_name: Optional[str] = None,
        node_group_name_prefix: Optional[str] = None,
        node_repair_config: Optional[NodeGroupNodeRepairConfigArgs] = None,
        node_role_arn: Optional[str] = None,
        release_version: Optional[str] = None,
        remote_access: Optional[NodeGroupRemoteAccessArgs] = None,
        resources: Optional[Sequence[NodeGroupResourceArgs]] = None,
        scaling_config: Optional[NodeGroupScalingConfigArgs] = None,
        status: Optional[str] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        taints: Optional[Sequence[NodeGroupTaintArgs]] = None,
        update_config: Optional[NodeGroupUpdateConfigArgs] = None,
        version: Optional[str] = None) -> NodeGroupfunc GetNodeGroup(ctx *Context, name string, id IDInput, state *NodeGroupState, opts ...ResourceOption) (*NodeGroup, error)public static NodeGroup Get(string name, Input<string> id, NodeGroupState? state, CustomResourceOptions? opts = null)public static NodeGroup get(String name, Output<String> id, NodeGroupState state, CustomResourceOptions options)resources:  _:    type: aws:eks:NodeGroup    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AmiType string
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- Arn string
- Amazon Resource Name (ARN) of the EKS Node Group.
- CapacityType string
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- ClusterName string
- Name of the EKS Cluster.
- DiskSize int
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- ForceUpdate boolVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- InstanceTypes List<string>
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- Labels Dictionary<string, string>
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- LaunchTemplate NodeGroup Launch Template 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- NodeGroup stringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- NodeGroup stringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- NodeRepair NodeConfig Group Node Repair Config 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- NodeRole stringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- ReleaseVersion string
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- RemoteAccess NodeGroup Remote Access 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- Resources
List<NodeGroup Resource> 
- List of objects containing information about underlying resources.
- ScalingConfig NodeGroup Scaling Config 
- Configuration block with scaling settings. See scaling_configbelow for details.
- Status string
- Status of the EKS Node Group.
- SubnetIds List<string>
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Taints
List<NodeGroup Taint> 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- UpdateConfig NodeGroup Update Config 
- Configuration block with update settings. See update_configbelow for details.
- Version string
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- AmiType string
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- Arn string
- Amazon Resource Name (ARN) of the EKS Node Group.
- CapacityType string
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- ClusterName string
- Name of the EKS Cluster.
- DiskSize int
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- ForceUpdate boolVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- InstanceTypes []string
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- Labels map[string]string
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- LaunchTemplate NodeGroup Launch Template Args 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- NodeGroup stringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- NodeGroup stringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- NodeRepair NodeConfig Group Node Repair Config Args 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- NodeRole stringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- ReleaseVersion string
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- RemoteAccess NodeGroup Remote Access Args 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- Resources
[]NodeGroup Resource Args 
- List of objects containing information about underlying resources.
- ScalingConfig NodeGroup Scaling Config Args 
- Configuration block with scaling settings. See scaling_configbelow for details.
- Status string
- Status of the EKS Node Group.
- SubnetIds []string
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- map[string]string
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Taints
[]NodeGroup Taint Args 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- UpdateConfig NodeGroup Update Config Args 
- Configuration block with update settings. See update_configbelow for details.
- Version string
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- amiType String
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- arn String
- Amazon Resource Name (ARN) of the EKS Node Group.
- capacityType String
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- clusterName String
- Name of the EKS Cluster.
- diskSize Integer
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- forceUpdate BooleanVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instanceTypes List<String>
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels Map<String,String>
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launchTemplate NodeGroup Launch Template 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- nodeGroup StringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- nodeGroup StringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- nodeRepair NodeConfig Group Node Repair Config 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- nodeRole StringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- releaseVersion String
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remoteAccess NodeGroup Remote Access 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- resources
List<NodeGroup Resource> 
- List of objects containing information about underlying resources.
- scalingConfig NodeGroup Scaling Config 
- Configuration block with scaling settings. See scaling_configbelow for details.
- status String
- Status of the EKS Node Group.
- subnetIds List<String>
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- Map<String,String>
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- taints
List<NodeGroup Taint> 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- updateConfig NodeGroup Update Config 
- Configuration block with update settings. See update_configbelow for details.
- version String
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- amiType string
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- arn string
- Amazon Resource Name (ARN) of the EKS Node Group.
- capacityType string
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- clusterName string
- Name of the EKS Cluster.
- diskSize number
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- forceUpdate booleanVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instanceTypes string[]
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels {[key: string]: string}
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launchTemplate NodeGroup Launch Template 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- nodeGroup stringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- nodeGroup stringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- nodeRepair NodeConfig Group Node Repair Config 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- nodeRole stringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- releaseVersion string
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remoteAccess NodeGroup Remote Access 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- resources
NodeGroup Resource[] 
- List of objects containing information about underlying resources.
- scalingConfig NodeGroup Scaling Config 
- Configuration block with scaling settings. See scaling_configbelow for details.
- status string
- Status of the EKS Node Group.
- subnetIds string[]
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- taints
NodeGroup Taint[] 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- updateConfig NodeGroup Update Config 
- Configuration block with update settings. See update_configbelow for details.
- version string
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- ami_type str
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- arn str
- Amazon Resource Name (ARN) of the EKS Node Group.
- capacity_type str
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- cluster_name str
- Name of the EKS Cluster.
- disk_size int
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- force_update_ boolversion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instance_types Sequence[str]
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels Mapping[str, str]
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launch_template NodeGroup Launch Template Args 
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- node_group_ strname 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- node_group_ strname_ prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- node_repair_ Nodeconfig Group Node Repair Config Args 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- node_role_ strarn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- release_version str
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remote_access NodeGroup Remote Access Args 
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- resources
Sequence[NodeGroup Resource Args] 
- List of objects containing information about underlying resources.
- scaling_config NodeGroup Scaling Config Args 
- Configuration block with scaling settings. See scaling_configbelow for details.
- status str
- Status of the EKS Node Group.
- subnet_ids Sequence[str]
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- taints
Sequence[NodeGroup Taint Args] 
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- update_config NodeGroup Update Config Args 
- Configuration block with update settings. See update_configbelow for details.
- version str
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
- amiType String
- Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. This provider will only perform drift detection if a configuration value is provided.
- arn String
- Amazon Resource Name (ARN) of the EKS Node Group.
- capacityType String
- Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND,SPOT. This provider will only perform drift detection if a configuration value is provided.
- clusterName String
- Name of the EKS Cluster.
- diskSize Number
- Disk size in GiB for worker nodes. Defaults to 50for Windows,20all other node groups. The provider will only perform drift detection if a configuration value is provided.
- forceUpdate BooleanVersion 
- Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
- instanceTypes List<String>
- List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. The provider will only perform drift detection if a configuration value is provided.
- labels Map<String>
- Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
- launchTemplate Property Map
- Configuration block with Launch Template settings. See launch_templatebelow for details. Conflicts withremote_access.
- nodeGroup StringName 
- Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with node_group_name_prefix. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
- nodeGroup StringName Prefix 
- Creates a unique name beginning with the specified prefix. Conflicts with node_group_name.
- nodeRepair Property MapConfig 
- The node auto repair configuration for the node group. See node_repair_configbelow for details.
- nodeRole StringArn 
- Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
- releaseVersion String
- AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
- remoteAccess Property Map
- Configuration block with remote access settings. See remote_accessbelow for details. Conflicts withlaunch_template.
- resources List<Property Map>
- List of objects containing information about underlying resources.
- scalingConfig Property Map
- Configuration block with scaling settings. See scaling_configbelow for details.
- status String
- Status of the EKS Node Group.
- subnetIds List<String>
- Identifiers of EC2 Subnets to associate with the EKS Node Group. - The following arguments are optional: 
- Map<String>
- Key-value map of resource tags. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- taints List<Property Map>
- The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
- updateConfig Property Map
- Configuration block with update settings. See update_configbelow for details.
- version String
- Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
Supporting Types
NodeGroupLaunchTemplate, NodeGroupLaunchTemplateArgs        
- Version string
- EC2 Launch Template version number. While the API accepts values like $Defaultand$Latest, the API will convert the value to the associated version number (e.g.,1) on read and the provider will show a difference on next plan. Using thedefault_versionorlatest_versionattribute of theaws.ec2.LaunchTemplateresource or data source is recommended for this argument.
- Id string
- Identifier of the EC2 Launch Template. Conflicts with name.
- Name string
- Name of the EC2 Launch Template. Conflicts with id.
- Version string
- EC2 Launch Template version number. While the API accepts values like $Defaultand$Latest, the API will convert the value to the associated version number (e.g.,1) on read and the provider will show a difference on next plan. Using thedefault_versionorlatest_versionattribute of theaws.ec2.LaunchTemplateresource or data source is recommended for this argument.
- Id string
- Identifier of the EC2 Launch Template. Conflicts with name.
- Name string
- Name of the EC2 Launch Template. Conflicts with id.
- version String
- EC2 Launch Template version number. While the API accepts values like $Defaultand$Latest, the API will convert the value to the associated version number (e.g.,1) on read and the provider will show a difference on next plan. Using thedefault_versionorlatest_versionattribute of theaws.ec2.LaunchTemplateresource or data source is recommended for this argument.
- id String
- Identifier of the EC2 Launch Template. Conflicts with name.
- name String
- Name of the EC2 Launch Template. Conflicts with id.
- version string
- EC2 Launch Template version number. While the API accepts values like $Defaultand$Latest, the API will convert the value to the associated version number (e.g.,1) on read and the provider will show a difference on next plan. Using thedefault_versionorlatest_versionattribute of theaws.ec2.LaunchTemplateresource or data source is recommended for this argument.
- id string
- Identifier of the EC2 Launch Template. Conflicts with name.
- name string
- Name of the EC2 Launch Template. Conflicts with id.
- version str
- EC2 Launch Template version number. While the API accepts values like $Defaultand$Latest, the API will convert the value to the associated version number (e.g.,1) on read and the provider will show a difference on next plan. Using thedefault_versionorlatest_versionattribute of theaws.ec2.LaunchTemplateresource or data source is recommended for this argument.
- id str
- Identifier of the EC2 Launch Template. Conflicts with name.
- name str
- Name of the EC2 Launch Template. Conflicts with id.
- version String
- EC2 Launch Template version number. While the API accepts values like $Defaultand$Latest, the API will convert the value to the associated version number (e.g.,1) on read and the provider will show a difference on next plan. Using thedefault_versionorlatest_versionattribute of theaws.ec2.LaunchTemplateresource or data source is recommended for this argument.
- id String
- Identifier of the EC2 Launch Template. Conflicts with name.
- name String
- Name of the EC2 Launch Template. Conflicts with id.
NodeGroupNodeRepairConfig, NodeGroupNodeRepairConfigArgs          
- Enabled bool
- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.
- Enabled bool
- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.
- enabled Boolean
- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.
- enabled boolean
- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.
- enabled bool
- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.
- enabled Boolean
- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.
NodeGroupRemoteAccess, NodeGroupRemoteAccessArgs        
- Ec2SshKey string
- EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_idswhen you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
- SourceSecurity List<string>Group Ids 
- Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
- Ec2SshKey string
- EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_idswhen you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
- SourceSecurity []stringGroup Ids 
- Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
- ec2SshKey String
- EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_idswhen you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
- sourceSecurity List<String>Group Ids 
- Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
- ec2SshKey string
- EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_idswhen you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
- sourceSecurity string[]Group Ids 
- Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
- ec2_ssh_ strkey 
- EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_idswhen you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
- source_security_ Sequence[str]group_ ids 
- Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
- ec2SshKey String
- EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_idswhen you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
- sourceSecurity List<String>Group Ids 
- Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
NodeGroupResource, NodeGroupResourceArgs      
- AutoscalingGroups List<NodeGroup Resource Autoscaling Group> 
- List of objects containing information about AutoScaling Groups.
- RemoteAccess stringSecurity Group Id 
- Identifier of the remote access EC2 Security Group.
- AutoscalingGroups []NodeGroup Resource Autoscaling Group 
- List of objects containing information about AutoScaling Groups.
- RemoteAccess stringSecurity Group Id 
- Identifier of the remote access EC2 Security Group.
- autoscalingGroups List<NodeGroup Resource Autoscaling Group> 
- List of objects containing information about AutoScaling Groups.
- remoteAccess StringSecurity Group Id 
- Identifier of the remote access EC2 Security Group.
- autoscalingGroups NodeGroup Resource Autoscaling Group[] 
- List of objects containing information about AutoScaling Groups.
- remoteAccess stringSecurity Group Id 
- Identifier of the remote access EC2 Security Group.
- autoscaling_groups Sequence[NodeGroup Resource Autoscaling Group] 
- List of objects containing information about AutoScaling Groups.
- remote_access_ strsecurity_ group_ id 
- Identifier of the remote access EC2 Security Group.
- autoscalingGroups List<Property Map>
- List of objects containing information about AutoScaling Groups.
- remoteAccess StringSecurity Group Id 
- Identifier of the remote access EC2 Security Group.
NodeGroupResourceAutoscalingGroup, NodeGroupResourceAutoscalingGroupArgs          
- Name string
- Name of the AutoScaling Group.
- Name string
- Name of the AutoScaling Group.
- name String
- Name of the AutoScaling Group.
- name string
- Name of the AutoScaling Group.
- name str
- Name of the AutoScaling Group.
- name String
- Name of the AutoScaling Group.
NodeGroupScalingConfig, NodeGroupScalingConfigArgs        
- DesiredSize int
- Desired number of worker nodes.
- MaxSize int
- Maximum number of worker nodes.
- MinSize int
- Minimum number of worker nodes.
- DesiredSize int
- Desired number of worker nodes.
- MaxSize int
- Maximum number of worker nodes.
- MinSize int
- Minimum number of worker nodes.
- desiredSize Integer
- Desired number of worker nodes.
- maxSize Integer
- Maximum number of worker nodes.
- minSize Integer
- Minimum number of worker nodes.
- desiredSize number
- Desired number of worker nodes.
- maxSize number
- Maximum number of worker nodes.
- minSize number
- Minimum number of worker nodes.
- desired_size int
- Desired number of worker nodes.
- max_size int
- Maximum number of worker nodes.
- min_size int
- Minimum number of worker nodes.
- desiredSize Number
- Desired number of worker nodes.
- maxSize Number
- Maximum number of worker nodes.
- minSize Number
- Minimum number of worker nodes.
NodeGroupTaint, NodeGroupTaintArgs      
NodeGroupUpdateConfig, NodeGroupUpdateConfigArgs        
- int
- Desired max number of unavailable worker nodes during node group update.
- int
- Desired max percentage of unavailable worker nodes during node group update.
- int
- Desired max number of unavailable worker nodes during node group update.
- int
- Desired max percentage of unavailable worker nodes during node group update.
- Integer
- Desired max number of unavailable worker nodes during node group update.
- Integer
- Desired max percentage of unavailable worker nodes during node group update.
- number
- Desired max number of unavailable worker nodes during node group update.
- number
- Desired max percentage of unavailable worker nodes during node group update.
- int
- Desired max number of unavailable worker nodes during node group update.
- int
- Desired max percentage of unavailable worker nodes during node group update.
- Number
- Desired max number of unavailable worker nodes during node group update.
- Number
- Desired max percentage of unavailable worker nodes during node group update.
Import
Using pulumi import, import EKS Node Groups using the cluster_name and node_group_name separated by a colon (:). For example:
$ pulumi import aws:eks/nodeGroup:NodeGroup my_node_group my_cluster:my_node_group
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.