pulumi-eks 4.3.0a1768463252__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1161 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-gen-eks. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+ from ._enums import *
17
+ from ._inputs import *
18
+ from .cluster import Cluster
19
+ from .vpc_cni_addon import VpcCniAddon
20
+ import pulumi_aws
21
+ import pulumi_kubernetes
22
+
23
+ __all__ = ['NodeGroupArgs', 'NodeGroup']
24
+
25
+ @pulumi.input_type
26
+ class NodeGroupArgs:
27
+ def __init__(__self__, *,
28
+ cluster: pulumi.Input[Union['Cluster', 'CoreDataArgs']],
29
+ ami_id: Optional[pulumi.Input[_builtins.str]] = None,
30
+ ami_type: Optional[pulumi.Input[_builtins.str]] = None,
31
+ auto_scaling_group_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
32
+ bootstrap_extra_args: Optional[pulumi.Input[_builtins.str]] = None,
33
+ bottlerocket_settings: Optional[pulumi.Input[Mapping[str, Any]]] = None,
34
+ cloud_formation_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
35
+ cluster_ingress_rule: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroupRule']] = None,
36
+ cluster_ingress_rule_id: Optional[pulumi.Input[_builtins.str]] = None,
37
+ desired_capacity: Optional[pulumi.Input[_builtins.int]] = None,
38
+ enable_detailed_monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
39
+ encrypt_root_block_device: Optional[pulumi.Input[_builtins.bool]] = None,
40
+ extra_node_security_groups: Optional[pulumi.Input[Sequence[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]]] = None,
41
+ gpu: Optional[pulumi.Input[_builtins.bool]] = None,
42
+ instance_profile: Optional['pulumi_aws.iam.InstanceProfile'] = None,
43
+ instance_profile_name: Optional[pulumi.Input[_builtins.str]] = None,
44
+ instance_type: Optional[pulumi.Input[_builtins.str]] = None,
45
+ key_name: Optional[pulumi.Input[_builtins.str]] = None,
46
+ kubelet_extra_args: Optional[pulumi.Input[_builtins.str]] = None,
47
+ labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
48
+ max_size: Optional[pulumi.Input[_builtins.int]] = None,
49
+ min_size: Optional[pulumi.Input[_builtins.int]] = None,
50
+ node_associate_public_ip_address: Optional[pulumi.Input[_builtins.bool]] = None,
51
+ node_public_key: Optional[pulumi.Input[_builtins.str]] = None,
52
+ node_root_volume_delete_on_termination: Optional[pulumi.Input[_builtins.bool]] = None,
53
+ node_root_volume_encrypted: Optional[pulumi.Input[_builtins.bool]] = None,
54
+ node_root_volume_iops: Optional[pulumi.Input[_builtins.int]] = None,
55
+ node_root_volume_size: Optional[pulumi.Input[_builtins.int]] = None,
56
+ node_root_volume_throughput: Optional[pulumi.Input[_builtins.int]] = None,
57
+ node_root_volume_type: Optional[pulumi.Input[_builtins.str]] = None,
58
+ node_security_group: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroup']] = None,
59
+ node_security_group_id: Optional[pulumi.Input[_builtins.str]] = None,
60
+ node_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
61
+ node_user_data: Optional[pulumi.Input[_builtins.str]] = None,
62
+ node_user_data_override: Optional[pulumi.Input[_builtins.str]] = None,
63
+ nodeadm_extra_options: Optional[pulumi.Input[Sequence[pulumi.Input['NodeadmOptionsArgs']]]] = None,
64
+ operating_system: Optional[pulumi.Input['OperatingSystem']] = None,
65
+ spot_price: Optional[pulumi.Input[_builtins.str]] = None,
66
+ taints: Optional[pulumi.Input[Mapping[str, pulumi.Input['TaintArgs']]]] = None,
67
+ version: Optional[pulumi.Input[_builtins.str]] = None):
68
+ """
69
+ The set of arguments for constructing a NodeGroup resource.
70
+ :param pulumi.Input[Union['Cluster', 'CoreDataArgs']] cluster: The target EKS cluster.
71
+ :param pulumi.Input[_builtins.str] ami_id: The AMI ID to use for the worker nodes.
72
+
73
+ Defaults to the latest recommended EKS Optimized Linux AMI from the AWS Systems Manager Parameter Store.
74
+
75
+ Note: `amiId` and `gpu` are mutually exclusive.
76
+
77
+ See for more details:
78
+ - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html.
79
+ :param pulumi.Input[_builtins.str] ami_type: The AMI Type to use for the worker nodes.
80
+
81
+ Only applicable when setting an AMI ID that is of type `arm64`.
82
+
83
+ Note: `amiType` and `gpu` are mutually exclusive.
84
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] auto_scaling_group_tags: The tags to apply to the NodeGroup's AutoScalingGroup in the CloudFormation Stack.
85
+
86
+ Per AWS, all stack-level tags, including automatically created tags, and the `cloudFormationTags` option are propagated to resources that AWS CloudFormation supports, including the AutoScalingGroup. See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
87
+
88
+ Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
89
+ :param pulumi.Input[_builtins.str] bootstrap_extra_args: Additional args to pass directly to `/etc/eks/bootstrap.sh`. For details on available options, see: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh. Note that the `--apiserver-endpoint`, `--b64-cluster-ca` and `--kubelet-extra-args` flags are included automatically based on other configuration parameters.
90
+ :param pulumi.Input[Mapping[str, Any]] bottlerocket_settings: The configuration settings for Bottlerocket OS.
91
+ The settings will get merged with the base settings the provider uses to configure Bottlerocket.
92
+
93
+ This includes:
94
+ - settings.kubernetes.api-server
95
+ - settings.kubernetes.cluster-certificate
96
+ - settings.kubernetes.cluster-name
97
+ - settings.kubernetes.cluster-dns-ip
98
+
99
+ For an overview of the available settings, see https://bottlerocket.dev/en/os/1.20.x/api/settings/.
100
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] cloud_formation_tags: The tags to apply to the CloudFormation Stack of the Worker NodeGroup.
101
+
102
+ Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
103
+ :param pulumi.Input['pulumi_aws.ec2.SecurityGroupRule'] cluster_ingress_rule: The ingress rule that gives node group access.
104
+ :param pulumi.Input[_builtins.str] cluster_ingress_rule_id: The ID of the ingress rule that gives node group access.
105
+ :param pulumi.Input[_builtins.int] desired_capacity: The number of worker nodes that should be running in the cluster. Defaults to 2.
106
+ :param pulumi.Input[_builtins.bool] enable_detailed_monitoring: Enables/disables detailed monitoring of the EC2 instances.
107
+
108
+ With detailed monitoring, all metrics, including status check metrics, are available in 1-minute intervals.
109
+ When enabled, you can also get aggregated data across groups of similar instances.
110
+
111
+ Note: You are charged per metric that is sent to CloudWatch. You are not charged for data storage.
112
+ For more information, see "Paid tier" and "Example 1 - EC2 Detailed Monitoring" here https://aws.amazon.com/cloudwatch/pricing/.
113
+ :param pulumi.Input[_builtins.bool] encrypt_root_block_device: Encrypt the root block device of the nodes in the node group.
114
+ :param pulumi.Input[Sequence[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]] extra_node_security_groups: Extra security groups to attach on all nodes in this worker node group.
115
+
116
+ This additional set of security groups captures any user application rules that will be needed for the nodes.
117
+ :param pulumi.Input[_builtins.bool] gpu: Use the latest recommended EKS Optimized Linux AMI with GPU support for the worker nodes from the AWS Systems Manager Parameter Store.
118
+
119
+ Defaults to false.
120
+
121
+ Note: `gpu` and `amiId` are mutually exclusive.
122
+
123
+ See for more details:
124
+ - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html
125
+ - https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html
126
+ :param 'pulumi_aws.iam.InstanceProfile' instance_profile: The IAM InstanceProfile to use on the NodeGroup. Properties instanceProfile and instanceProfileName are mutually exclusive.
127
+ :param pulumi.Input[_builtins.str] instance_profile_name: The name of the IAM InstanceProfile to use on the NodeGroup. Properties instanceProfile and instanceProfileName are mutually exclusive.
128
+ :param pulumi.Input[_builtins.str] instance_type: The instance type to use for the cluster's nodes. Defaults to "t3.medium".
129
+ :param pulumi.Input[_builtins.str] key_name: Name of the key pair to use for SSH access to worker nodes.
130
+ :param pulumi.Input[_builtins.str] kubelet_extra_args: Extra args to pass to the Kubelet. Corresponds to the options passed in the `--kubeletExtraArgs` flag to `/etc/eks/bootstrap.sh`. For example, '--port=10251 --address=0.0.0.0'. Note that the `labels` and `taints` properties will be applied to this list (using `--node-labels` and `--register-with-taints` respectively) after to the explicit `kubeletExtraArgs`.
131
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: Custom k8s node labels to be attached to each worker node. Adds the given key/value pairs to the `--node-labels` kubelet argument.
132
+ :param pulumi.Input[_builtins.int] max_size: The maximum number of worker nodes running in the cluster. Defaults to 2.
133
+ :param pulumi.Input[_builtins.int] min_size: The minimum number of worker nodes running in the cluster. Defaults to 1.
134
+ :param pulumi.Input[_builtins.bool] node_associate_public_ip_address: Whether or not to auto-assign public IP addresses on the EKS worker nodes. If this toggle is set to true, the EKS workers will be auto-assigned public IPs. If false, they will not be auto-assigned public IPs.
135
+ :param pulumi.Input[_builtins.str] node_public_key: Public key material for SSH access to worker nodes. See allowed formats at:
136
+ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
137
+ If not provided, no SSH access is enabled on VMs.
138
+ :param pulumi.Input[_builtins.bool] node_root_volume_delete_on_termination: Whether the root block device should be deleted on termination of the instance. Defaults to true.
139
+ :param pulumi.Input[_builtins.bool] node_root_volume_encrypted: Whether to encrypt a cluster node's root volume. Defaults to false.
140
+ :param pulumi.Input[_builtins.int] node_root_volume_iops: The amount of provisioned IOPS. This is only valid with a volumeType of 'io1'.
141
+ :param pulumi.Input[_builtins.int] node_root_volume_size: The size in GiB of a cluster node's root volume. Defaults to 20.
142
+ :param pulumi.Input[_builtins.int] node_root_volume_throughput: Provisioned throughput performance in integer MiB/s for a cluster node's root volume. This is only valid with a volumeType of 'gp3'.
143
+ :param pulumi.Input[_builtins.str] node_root_volume_type: Configured EBS type for a cluster node's root volume. Default is 'gp2'. Supported values are 'standard', 'gp2', 'gp3', 'st1', 'sc1', 'io1'.
144
+ :param pulumi.Input['pulumi_aws.ec2.SecurityGroup'] node_security_group: The security group for the worker node group to communicate with the cluster.
145
+
146
+ This security group requires specific inbound and outbound rules.
147
+
148
+ See for more details:
149
+ https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html
150
+
151
+ Note: The `nodeSecurityGroup` option and the cluster option`nodeSecurityGroupTags` are mutually exclusive.
152
+ :param pulumi.Input[_builtins.str] node_security_group_id: The ID of the security group for the worker node group to communicate with the cluster.
153
+
154
+ This security group requires specific inbound and outbound rules.
155
+
156
+ See for more details:
157
+ https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html
158
+
159
+ Note: The `nodeSecurityGroupId` option and the cluster option `nodeSecurityGroupTags` are mutually exclusive.
160
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] node_subnet_ids: The set of subnets to override and use for the worker node group.
161
+
162
+ Setting this option overrides which subnets to use for the worker node group, regardless if the cluster's `subnetIds` is set, or if `publicSubnetIds` and/or `privateSubnetIds` were set.
163
+ :param pulumi.Input[_builtins.str] node_user_data: Extra code to run on node startup. This code will run after the AWS EKS bootstrapping code and before the node signals its readiness to the managing CloudFormation stack. This code must be a typical user data script: critically it must begin with an interpreter directive (i.e. a `#!`).
164
+ :param pulumi.Input[_builtins.str] node_user_data_override: User specified code to run on node startup. This code is expected to handle the full AWS EKS bootstrapping code and signal node readiness to the managing CloudFormation stack. This code must be a complete and executable user data script in bash (Linux) or powershell (Windows).
165
+
166
+ See for more details: https://docs.aws.amazon.com/eks/latest/userguide/worker.html
167
+ :param pulumi.Input[Sequence[pulumi.Input['NodeadmOptionsArgs']]] nodeadm_extra_options: Extra nodeadm configuration sections to be added to the nodeadm user data. This can be shell scripts, nodeadm NodeConfig or any other user data compatible script. When configuring additional nodeadm NodeConfig sections, they'll be merged with the base settings the provider sets. You can overwrite base settings or provide additional settings this way.
168
+ The base settings the provider sets are:
169
+ - cluster.name
170
+ - cluster.apiServerEndpoint
171
+ - cluster.certificateAuthority
172
+ - cluster.cidr
173
+
174
+ Note: This is only applicable when using AL2023.
175
+ See for more details:
176
+ - https://awslabs.github.io/amazon-eks-ami/nodeadm/
177
+ - https://awslabs.github.io/amazon-eks-ami/nodeadm/doc/api/
178
+ :param pulumi.Input['OperatingSystem'] operating_system: The type of OS to use for the node group. Will be used to determine the right EKS optimized AMI to use based on the instance types and gpu configuration.
179
+ Valid values are `RECOMMENDED`, `AL2`, `AL2023` and `Bottlerocket`.
180
+
181
+ Defaults to the current recommended OS.
182
+ :param pulumi.Input[_builtins.str] spot_price: Bidding price for spot instance. If set, only spot instances will be added as worker node.
183
+ :param pulumi.Input[Mapping[str, pulumi.Input['TaintArgs']]] taints: Custom k8s node taints to be attached to each worker node. Adds the given taints to the `--register-with-taints` kubelet argument
184
+ :param pulumi.Input[_builtins.str] version: Desired Kubernetes master / control plane version. If you do not specify a value, the latest available version is used.
185
+ """
186
+ pulumi.set(__self__, "cluster", cluster)
187
+ if ami_id is not None:
188
+ pulumi.set(__self__, "ami_id", ami_id)
189
+ if ami_type is not None:
190
+ pulumi.set(__self__, "ami_type", ami_type)
191
+ if auto_scaling_group_tags is not None:
192
+ pulumi.set(__self__, "auto_scaling_group_tags", auto_scaling_group_tags)
193
+ if bootstrap_extra_args is not None:
194
+ pulumi.set(__self__, "bootstrap_extra_args", bootstrap_extra_args)
195
+ if bottlerocket_settings is not None:
196
+ pulumi.set(__self__, "bottlerocket_settings", bottlerocket_settings)
197
+ if cloud_formation_tags is not None:
198
+ pulumi.set(__self__, "cloud_formation_tags", cloud_formation_tags)
199
+ if cluster_ingress_rule is not None:
200
+ pulumi.set(__self__, "cluster_ingress_rule", cluster_ingress_rule)
201
+ if cluster_ingress_rule_id is not None:
202
+ pulumi.set(__self__, "cluster_ingress_rule_id", cluster_ingress_rule_id)
203
+ if desired_capacity is not None:
204
+ pulumi.set(__self__, "desired_capacity", desired_capacity)
205
+ if enable_detailed_monitoring is not None:
206
+ pulumi.set(__self__, "enable_detailed_monitoring", enable_detailed_monitoring)
207
+ if encrypt_root_block_device is not None:
208
+ pulumi.set(__self__, "encrypt_root_block_device", encrypt_root_block_device)
209
+ if extra_node_security_groups is not None:
210
+ pulumi.set(__self__, "extra_node_security_groups", extra_node_security_groups)
211
+ if gpu is not None:
212
+ pulumi.set(__self__, "gpu", gpu)
213
+ if instance_profile is not None:
214
+ pulumi.set(__self__, "instance_profile", instance_profile)
215
+ if instance_profile_name is not None:
216
+ pulumi.set(__self__, "instance_profile_name", instance_profile_name)
217
+ if instance_type is not None:
218
+ pulumi.set(__self__, "instance_type", instance_type)
219
+ if key_name is not None:
220
+ pulumi.set(__self__, "key_name", key_name)
221
+ if kubelet_extra_args is not None:
222
+ pulumi.set(__self__, "kubelet_extra_args", kubelet_extra_args)
223
+ if labels is not None:
224
+ pulumi.set(__self__, "labels", labels)
225
+ if max_size is not None:
226
+ pulumi.set(__self__, "max_size", max_size)
227
+ if min_size is not None:
228
+ pulumi.set(__self__, "min_size", min_size)
229
+ if node_associate_public_ip_address is not None:
230
+ pulumi.set(__self__, "node_associate_public_ip_address", node_associate_public_ip_address)
231
+ if node_public_key is not None:
232
+ pulumi.set(__self__, "node_public_key", node_public_key)
233
+ if node_root_volume_delete_on_termination is not None:
234
+ pulumi.set(__self__, "node_root_volume_delete_on_termination", node_root_volume_delete_on_termination)
235
+ if node_root_volume_encrypted is not None:
236
+ pulumi.set(__self__, "node_root_volume_encrypted", node_root_volume_encrypted)
237
+ if node_root_volume_iops is not None:
238
+ pulumi.set(__self__, "node_root_volume_iops", node_root_volume_iops)
239
+ if node_root_volume_size is not None:
240
+ pulumi.set(__self__, "node_root_volume_size", node_root_volume_size)
241
+ if node_root_volume_throughput is not None:
242
+ pulumi.set(__self__, "node_root_volume_throughput", node_root_volume_throughput)
243
+ if node_root_volume_type is not None:
244
+ pulumi.set(__self__, "node_root_volume_type", node_root_volume_type)
245
+ if node_security_group is not None:
246
+ pulumi.set(__self__, "node_security_group", node_security_group)
247
+ if node_security_group_id is not None:
248
+ pulumi.set(__self__, "node_security_group_id", node_security_group_id)
249
+ if node_subnet_ids is not None:
250
+ pulumi.set(__self__, "node_subnet_ids", node_subnet_ids)
251
+ if node_user_data is not None:
252
+ pulumi.set(__self__, "node_user_data", node_user_data)
253
+ if node_user_data_override is not None:
254
+ pulumi.set(__self__, "node_user_data_override", node_user_data_override)
255
+ if nodeadm_extra_options is not None:
256
+ pulumi.set(__self__, "nodeadm_extra_options", nodeadm_extra_options)
257
+ if operating_system is not None:
258
+ pulumi.set(__self__, "operating_system", operating_system)
259
+ if spot_price is not None:
260
+ pulumi.set(__self__, "spot_price", spot_price)
261
+ if taints is not None:
262
+ pulumi.set(__self__, "taints", taints)
263
+ if version is not None:
264
+ pulumi.set(__self__, "version", version)
265
+
266
+ @_builtins.property
267
+ @pulumi.getter
268
+ def cluster(self) -> pulumi.Input[Union['Cluster', 'CoreDataArgs']]:
269
+ """
270
+ The target EKS cluster.
271
+ """
272
+ return pulumi.get(self, "cluster")
273
+
274
+ @cluster.setter
275
+ def cluster(self, value: pulumi.Input[Union['Cluster', 'CoreDataArgs']]):
276
+ pulumi.set(self, "cluster", value)
277
+
278
+ @_builtins.property
279
+ @pulumi.getter(name="amiId")
280
+ def ami_id(self) -> Optional[pulumi.Input[_builtins.str]]:
281
+ """
282
+ The AMI ID to use for the worker nodes.
283
+
284
+ Defaults to the latest recommended EKS Optimized Linux AMI from the AWS Systems Manager Parameter Store.
285
+
286
+ Note: `amiId` and `gpu` are mutually exclusive.
287
+
288
+ See for more details:
289
+ - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html.
290
+ """
291
+ return pulumi.get(self, "ami_id")
292
+
293
+ @ami_id.setter
294
+ def ami_id(self, value: Optional[pulumi.Input[_builtins.str]]):
295
+ pulumi.set(self, "ami_id", value)
296
+
297
+ @_builtins.property
298
+ @pulumi.getter(name="amiType")
299
+ def ami_type(self) -> Optional[pulumi.Input[_builtins.str]]:
300
+ """
301
+ The AMI Type to use for the worker nodes.
302
+
303
+ Only applicable when setting an AMI ID that is of type `arm64`.
304
+
305
+ Note: `amiType` and `gpu` are mutually exclusive.
306
+ """
307
+ return pulumi.get(self, "ami_type")
308
+
309
+ @ami_type.setter
310
+ def ami_type(self, value: Optional[pulumi.Input[_builtins.str]]):
311
+ pulumi.set(self, "ami_type", value)
312
+
313
+ @_builtins.property
314
+ @pulumi.getter(name="autoScalingGroupTags")
315
+ def auto_scaling_group_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
316
+ """
317
+ The tags to apply to the NodeGroup's AutoScalingGroup in the CloudFormation Stack.
318
+
319
+ Per AWS, all stack-level tags, including automatically created tags, and the `cloudFormationTags` option are propagated to resources that AWS CloudFormation supports, including the AutoScalingGroup. See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
320
+
321
+ Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
322
+ """
323
+ return pulumi.get(self, "auto_scaling_group_tags")
324
+
325
+ @auto_scaling_group_tags.setter
326
+ def auto_scaling_group_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
327
+ pulumi.set(self, "auto_scaling_group_tags", value)
328
+
329
+ @_builtins.property
330
+ @pulumi.getter(name="bootstrapExtraArgs")
331
+ def bootstrap_extra_args(self) -> Optional[pulumi.Input[_builtins.str]]:
332
+ """
333
+ Additional args to pass directly to `/etc/eks/bootstrap.sh`. For details on available options, see: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh. Note that the `--apiserver-endpoint`, `--b64-cluster-ca` and `--kubelet-extra-args` flags are included automatically based on other configuration parameters.
334
+ """
335
+ return pulumi.get(self, "bootstrap_extra_args")
336
+
337
+ @bootstrap_extra_args.setter
338
+ def bootstrap_extra_args(self, value: Optional[pulumi.Input[_builtins.str]]):
339
+ pulumi.set(self, "bootstrap_extra_args", value)
340
+
341
+ @_builtins.property
342
+ @pulumi.getter(name="bottlerocketSettings")
343
+ def bottlerocket_settings(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
344
+ """
345
+ The configuration settings for Bottlerocket OS.
346
+ The settings will get merged with the base settings the provider uses to configure Bottlerocket.
347
+
348
+ This includes:
349
+ - settings.kubernetes.api-server
350
+ - settings.kubernetes.cluster-certificate
351
+ - settings.kubernetes.cluster-name
352
+ - settings.kubernetes.cluster-dns-ip
353
+
354
+ For an overview of the available settings, see https://bottlerocket.dev/en/os/1.20.x/api/settings/.
355
+ """
356
+ return pulumi.get(self, "bottlerocket_settings")
357
+
358
+ @bottlerocket_settings.setter
359
+ def bottlerocket_settings(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
360
+ pulumi.set(self, "bottlerocket_settings", value)
361
+
362
+ @_builtins.property
363
+ @pulumi.getter(name="cloudFormationTags")
364
+ def cloud_formation_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
365
+ """
366
+ The tags to apply to the CloudFormation Stack of the Worker NodeGroup.
367
+
368
+ Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
369
+ """
370
+ return pulumi.get(self, "cloud_formation_tags")
371
+
372
+ @cloud_formation_tags.setter
373
+ def cloud_formation_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
374
+ pulumi.set(self, "cloud_formation_tags", value)
375
+
376
+ @_builtins.property
377
+ @pulumi.getter(name="clusterIngressRule")
378
+ def cluster_ingress_rule(self) -> Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroupRule']]:
379
+ """
380
+ The ingress rule that gives node group access.
381
+ """
382
+ return pulumi.get(self, "cluster_ingress_rule")
383
+
384
+ @cluster_ingress_rule.setter
385
+ def cluster_ingress_rule(self, value: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroupRule']]):
386
+ pulumi.set(self, "cluster_ingress_rule", value)
387
+
388
+ @_builtins.property
389
+ @pulumi.getter(name="clusterIngressRuleId")
390
+ def cluster_ingress_rule_id(self) -> Optional[pulumi.Input[_builtins.str]]:
391
+ """
392
+ The ID of the ingress rule that gives node group access.
393
+ """
394
+ return pulumi.get(self, "cluster_ingress_rule_id")
395
+
396
+ @cluster_ingress_rule_id.setter
397
+ def cluster_ingress_rule_id(self, value: Optional[pulumi.Input[_builtins.str]]):
398
+ pulumi.set(self, "cluster_ingress_rule_id", value)
399
+
400
+ @_builtins.property
401
+ @pulumi.getter(name="desiredCapacity")
402
+ def desired_capacity(self) -> Optional[pulumi.Input[_builtins.int]]:
403
+ """
404
+ The number of worker nodes that should be running in the cluster. Defaults to 2.
405
+ """
406
+ return pulumi.get(self, "desired_capacity")
407
+
408
+ @desired_capacity.setter
409
+ def desired_capacity(self, value: Optional[pulumi.Input[_builtins.int]]):
410
+ pulumi.set(self, "desired_capacity", value)
411
+
412
+ @_builtins.property
413
+ @pulumi.getter(name="enableDetailedMonitoring")
414
+ def enable_detailed_monitoring(self) -> Optional[pulumi.Input[_builtins.bool]]:
415
+ """
416
+ Enables/disables detailed monitoring of the EC2 instances.
417
+
418
+ With detailed monitoring, all metrics, including status check metrics, are available in 1-minute intervals.
419
+ When enabled, you can also get aggregated data across groups of similar instances.
420
+
421
+ Note: You are charged per metric that is sent to CloudWatch. You are not charged for data storage.
422
+ For more information, see "Paid tier" and "Example 1 - EC2 Detailed Monitoring" here https://aws.amazon.com/cloudwatch/pricing/.
423
+ """
424
+ return pulumi.get(self, "enable_detailed_monitoring")
425
+
426
+ @enable_detailed_monitoring.setter
427
+ def enable_detailed_monitoring(self, value: Optional[pulumi.Input[_builtins.bool]]):
428
+ pulumi.set(self, "enable_detailed_monitoring", value)
429
+
430
+ @_builtins.property
431
+ @pulumi.getter(name="encryptRootBlockDevice")
432
+ def encrypt_root_block_device(self) -> Optional[pulumi.Input[_builtins.bool]]:
433
+ """
434
+ Encrypt the root block device of the nodes in the node group.
435
+ """
436
+ return pulumi.get(self, "encrypt_root_block_device")
437
+
438
+ @encrypt_root_block_device.setter
439
+ def encrypt_root_block_device(self, value: Optional[pulumi.Input[_builtins.bool]]):
440
+ pulumi.set(self, "encrypt_root_block_device", value)
441
+
442
+ @_builtins.property
443
+ @pulumi.getter(name="extraNodeSecurityGroups")
444
+ def extra_node_security_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]]]:
445
+ """
446
+ Extra security groups to attach on all nodes in this worker node group.
447
+
448
+ This additional set of security groups captures any user application rules that will be needed for the nodes.
449
+ """
450
+ return pulumi.get(self, "extra_node_security_groups")
451
+
452
+ @extra_node_security_groups.setter
453
+ def extra_node_security_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]]]):
454
+ pulumi.set(self, "extra_node_security_groups", value)
455
+
456
+ @_builtins.property
457
+ @pulumi.getter
458
+ def gpu(self) -> Optional[pulumi.Input[_builtins.bool]]:
459
+ """
460
+ Use the latest recommended EKS Optimized Linux AMI with GPU support for the worker nodes from the AWS Systems Manager Parameter Store.
461
+
462
+ Defaults to false.
463
+
464
+ Note: `gpu` and `amiId` are mutually exclusive.
465
+
466
+ See for more details:
467
+ - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html
468
+ - https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html
469
+ """
470
+ return pulumi.get(self, "gpu")
471
+
472
+ @gpu.setter
473
+ def gpu(self, value: Optional[pulumi.Input[_builtins.bool]]):
474
+ pulumi.set(self, "gpu", value)
475
+
476
+ @_builtins.property
477
+ @pulumi.getter(name="instanceProfile")
478
+ def instance_profile(self) -> Optional['pulumi_aws.iam.InstanceProfile']:
479
+ """
480
+ The IAM InstanceProfile to use on the NodeGroup. Properties instanceProfile and instanceProfileName are mutually exclusive.
481
+ """
482
+ return pulumi.get(self, "instance_profile")
483
+
484
+ @instance_profile.setter
485
+ def instance_profile(self, value: Optional['pulumi_aws.iam.InstanceProfile']):
486
+ pulumi.set(self, "instance_profile", value)
487
+
488
+ @_builtins.property
489
+ @pulumi.getter(name="instanceProfileName")
490
+ def instance_profile_name(self) -> Optional[pulumi.Input[_builtins.str]]:
491
+ """
492
+ The name of the IAM InstanceProfile to use on the NodeGroup. Properties instanceProfile and instanceProfileName are mutually exclusive.
493
+ """
494
+ return pulumi.get(self, "instance_profile_name")
495
+
496
+ @instance_profile_name.setter
497
+ def instance_profile_name(self, value: Optional[pulumi.Input[_builtins.str]]):
498
+ pulumi.set(self, "instance_profile_name", value)
499
+
500
+ @_builtins.property
501
+ @pulumi.getter(name="instanceType")
502
+ def instance_type(self) -> Optional[pulumi.Input[_builtins.str]]:
503
+ """
504
+ The instance type to use for the cluster's nodes. Defaults to "t3.medium".
505
+ """
506
+ return pulumi.get(self, "instance_type")
507
+
508
+ @instance_type.setter
509
+ def instance_type(self, value: Optional[pulumi.Input[_builtins.str]]):
510
+ pulumi.set(self, "instance_type", value)
511
+
512
+ @_builtins.property
513
+ @pulumi.getter(name="keyName")
514
+ def key_name(self) -> Optional[pulumi.Input[_builtins.str]]:
515
+ """
516
+ Name of the key pair to use for SSH access to worker nodes.
517
+ """
518
+ return pulumi.get(self, "key_name")
519
+
520
+ @key_name.setter
521
+ def key_name(self, value: Optional[pulumi.Input[_builtins.str]]):
522
+ pulumi.set(self, "key_name", value)
523
+
524
+ @_builtins.property
525
+ @pulumi.getter(name="kubeletExtraArgs")
526
+ def kubelet_extra_args(self) -> Optional[pulumi.Input[_builtins.str]]:
527
+ """
528
+ Extra args to pass to the Kubelet. Corresponds to the options passed in the `--kubeletExtraArgs` flag to `/etc/eks/bootstrap.sh`. For example, '--port=10251 --address=0.0.0.0'. Note that the `labels` and `taints` properties will be applied to this list (using `--node-labels` and `--register-with-taints` respectively) after to the explicit `kubeletExtraArgs`.
529
+ """
530
+ return pulumi.get(self, "kubelet_extra_args")
531
+
532
+ @kubelet_extra_args.setter
533
+ def kubelet_extra_args(self, value: Optional[pulumi.Input[_builtins.str]]):
534
+ pulumi.set(self, "kubelet_extra_args", value)
535
+
536
+ @_builtins.property
537
+ @pulumi.getter
538
+ def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
539
+ """
540
+ Custom k8s node labels to be attached to each worker node. Adds the given key/value pairs to the `--node-labels` kubelet argument.
541
+ """
542
+ return pulumi.get(self, "labels")
543
+
544
+ @labels.setter
545
+ def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
546
+ pulumi.set(self, "labels", value)
547
+
548
+ @_builtins.property
549
+ @pulumi.getter(name="maxSize")
550
+ def max_size(self) -> Optional[pulumi.Input[_builtins.int]]:
551
+ """
552
+ The maximum number of worker nodes running in the cluster. Defaults to 2.
553
+ """
554
+ return pulumi.get(self, "max_size")
555
+
556
+ @max_size.setter
557
+ def max_size(self, value: Optional[pulumi.Input[_builtins.int]]):
558
+ pulumi.set(self, "max_size", value)
559
+
560
+ @_builtins.property
561
+ @pulumi.getter(name="minSize")
562
+ def min_size(self) -> Optional[pulumi.Input[_builtins.int]]:
563
+ """
564
+ The minimum number of worker nodes running in the cluster. Defaults to 1.
565
+ """
566
+ return pulumi.get(self, "min_size")
567
+
568
+ @min_size.setter
569
+ def min_size(self, value: Optional[pulumi.Input[_builtins.int]]):
570
+ pulumi.set(self, "min_size", value)
571
+
572
+ @_builtins.property
573
+ @pulumi.getter(name="nodeAssociatePublicIpAddress")
574
+ def node_associate_public_ip_address(self) -> Optional[pulumi.Input[_builtins.bool]]:
575
+ """
576
+ Whether or not to auto-assign public IP addresses on the EKS worker nodes. If this toggle is set to true, the EKS workers will be auto-assigned public IPs. If false, they will not be auto-assigned public IPs.
577
+ """
578
+ return pulumi.get(self, "node_associate_public_ip_address")
579
+
580
+ @node_associate_public_ip_address.setter
581
+ def node_associate_public_ip_address(self, value: Optional[pulumi.Input[_builtins.bool]]):
582
+ pulumi.set(self, "node_associate_public_ip_address", value)
583
+
584
+ @_builtins.property
585
+ @pulumi.getter(name="nodePublicKey")
586
+ def node_public_key(self) -> Optional[pulumi.Input[_builtins.str]]:
587
+ """
588
+ Public key material for SSH access to worker nodes. See allowed formats at:
589
+ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
590
+ If not provided, no SSH access is enabled on VMs.
591
+ """
592
+ return pulumi.get(self, "node_public_key")
593
+
594
+ @node_public_key.setter
595
+ def node_public_key(self, value: Optional[pulumi.Input[_builtins.str]]):
596
+ pulumi.set(self, "node_public_key", value)
597
+
598
+ @_builtins.property
599
+ @pulumi.getter(name="nodeRootVolumeDeleteOnTermination")
600
+ def node_root_volume_delete_on_termination(self) -> Optional[pulumi.Input[_builtins.bool]]:
601
+ """
602
+ Whether the root block device should be deleted on termination of the instance. Defaults to true.
603
+ """
604
+ return pulumi.get(self, "node_root_volume_delete_on_termination")
605
+
606
+ @node_root_volume_delete_on_termination.setter
607
+ def node_root_volume_delete_on_termination(self, value: Optional[pulumi.Input[_builtins.bool]]):
608
+ pulumi.set(self, "node_root_volume_delete_on_termination", value)
609
+
610
+ @_builtins.property
611
+ @pulumi.getter(name="nodeRootVolumeEncrypted")
612
+ def node_root_volume_encrypted(self) -> Optional[pulumi.Input[_builtins.bool]]:
613
+ """
614
+ Whether to encrypt a cluster node's root volume. Defaults to false.
615
+ """
616
+ return pulumi.get(self, "node_root_volume_encrypted")
617
+
618
+ @node_root_volume_encrypted.setter
619
+ def node_root_volume_encrypted(self, value: Optional[pulumi.Input[_builtins.bool]]):
620
+ pulumi.set(self, "node_root_volume_encrypted", value)
621
+
622
+ @_builtins.property
623
+ @pulumi.getter(name="nodeRootVolumeIops")
624
+ def node_root_volume_iops(self) -> Optional[pulumi.Input[_builtins.int]]:
625
+ """
626
+ The amount of provisioned IOPS. This is only valid with a volumeType of 'io1'.
627
+ """
628
+ return pulumi.get(self, "node_root_volume_iops")
629
+
630
+ @node_root_volume_iops.setter
631
+ def node_root_volume_iops(self, value: Optional[pulumi.Input[_builtins.int]]):
632
+ pulumi.set(self, "node_root_volume_iops", value)
633
+
634
+ @_builtins.property
635
+ @pulumi.getter(name="nodeRootVolumeSize")
636
+ def node_root_volume_size(self) -> Optional[pulumi.Input[_builtins.int]]:
637
+ """
638
+ The size in GiB of a cluster node's root volume. Defaults to 20.
639
+ """
640
+ return pulumi.get(self, "node_root_volume_size")
641
+
642
+ @node_root_volume_size.setter
643
+ def node_root_volume_size(self, value: Optional[pulumi.Input[_builtins.int]]):
644
+ pulumi.set(self, "node_root_volume_size", value)
645
+
646
+ @_builtins.property
647
+ @pulumi.getter(name="nodeRootVolumeThroughput")
648
+ def node_root_volume_throughput(self) -> Optional[pulumi.Input[_builtins.int]]:
649
+ """
650
+ Provisioned throughput performance in integer MiB/s for a cluster node's root volume. This is only valid with a volumeType of 'gp3'.
651
+ """
652
+ return pulumi.get(self, "node_root_volume_throughput")
653
+
654
+ @node_root_volume_throughput.setter
655
+ def node_root_volume_throughput(self, value: Optional[pulumi.Input[_builtins.int]]):
656
+ pulumi.set(self, "node_root_volume_throughput", value)
657
+
658
+ @_builtins.property
659
+ @pulumi.getter(name="nodeRootVolumeType")
660
+ def node_root_volume_type(self) -> Optional[pulumi.Input[_builtins.str]]:
661
+ """
662
+ Configured EBS type for a cluster node's root volume. Default is 'gp2'. Supported values are 'standard', 'gp2', 'gp3', 'st1', 'sc1', 'io1'.
663
+ """
664
+ return pulumi.get(self, "node_root_volume_type")
665
+
666
+ @node_root_volume_type.setter
667
+ def node_root_volume_type(self, value: Optional[pulumi.Input[_builtins.str]]):
668
+ pulumi.set(self, "node_root_volume_type", value)
669
+
670
+ @_builtins.property
671
+ @pulumi.getter(name="nodeSecurityGroup")
672
+ def node_security_group(self) -> Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]:
673
+ """
674
+ The security group for the worker node group to communicate with the cluster.
675
+
676
+ This security group requires specific inbound and outbound rules.
677
+
678
+ See for more details:
679
+ https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html
680
+
681
+ Note: The `nodeSecurityGroup` option and the cluster option`nodeSecurityGroupTags` are mutually exclusive.
682
+ """
683
+ return pulumi.get(self, "node_security_group")
684
+
685
+ @node_security_group.setter
686
+ def node_security_group(self, value: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]):
687
+ pulumi.set(self, "node_security_group", value)
688
+
689
+ @_builtins.property
690
+ @pulumi.getter(name="nodeSecurityGroupId")
691
+ def node_security_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
692
+ """
693
+ The ID of the security group for the worker node group to communicate with the cluster.
694
+
695
+ This security group requires specific inbound and outbound rules.
696
+
697
+ See for more details:
698
+ https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html
699
+
700
+ Note: The `nodeSecurityGroupId` option and the cluster option `nodeSecurityGroupTags` are mutually exclusive.
701
+ """
702
+ return pulumi.get(self, "node_security_group_id")
703
+
704
+ @node_security_group_id.setter
705
+ def node_security_group_id(self, value: Optional[pulumi.Input[_builtins.str]]):
706
+ pulumi.set(self, "node_security_group_id", value)
707
+
708
+ @_builtins.property
709
+ @pulumi.getter(name="nodeSubnetIds")
710
+ def node_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
711
+ """
712
+ The set of subnets to override and use for the worker node group.
713
+
714
+ Setting this option overrides which subnets to use for the worker node group, regardless if the cluster's `subnetIds` is set, or if `publicSubnetIds` and/or `privateSubnetIds` were set.
715
+ """
716
+ return pulumi.get(self, "node_subnet_ids")
717
+
718
+ @node_subnet_ids.setter
719
+ def node_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
720
+ pulumi.set(self, "node_subnet_ids", value)
721
+
722
+ @_builtins.property
723
+ @pulumi.getter(name="nodeUserData")
724
+ def node_user_data(self) -> Optional[pulumi.Input[_builtins.str]]:
725
+ """
726
+ Extra code to run on node startup. This code will run after the AWS EKS bootstrapping code and before the node signals its readiness to the managing CloudFormation stack. This code must be a typical user data script: critically it must begin with an interpreter directive (i.e. a `#!`).
727
+ """
728
+ return pulumi.get(self, "node_user_data")
729
+
730
+ @node_user_data.setter
731
+ def node_user_data(self, value: Optional[pulumi.Input[_builtins.str]]):
732
+ pulumi.set(self, "node_user_data", value)
733
+
734
+ @_builtins.property
735
+ @pulumi.getter(name="nodeUserDataOverride")
736
+ def node_user_data_override(self) -> Optional[pulumi.Input[_builtins.str]]:
737
+ """
738
+ User specified code to run on node startup. This code is expected to handle the full AWS EKS bootstrapping code and signal node readiness to the managing CloudFormation stack. This code must be a complete and executable user data script in bash (Linux) or powershell (Windows).
739
+
740
+ See for more details: https://docs.aws.amazon.com/eks/latest/userguide/worker.html
741
+ """
742
+ return pulumi.get(self, "node_user_data_override")
743
+
744
+ @node_user_data_override.setter
745
+ def node_user_data_override(self, value: Optional[pulumi.Input[_builtins.str]]):
746
+ pulumi.set(self, "node_user_data_override", value)
747
+
748
+ @_builtins.property
749
+ @pulumi.getter(name="nodeadmExtraOptions")
750
+ def nodeadm_extra_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NodeadmOptionsArgs']]]]:
751
+ """
752
+ Extra nodeadm configuration sections to be added to the nodeadm user data. This can be shell scripts, nodeadm NodeConfig or any other user data compatible script. When configuring additional nodeadm NodeConfig sections, they'll be merged with the base settings the provider sets. You can overwrite base settings or provide additional settings this way.
753
+ The base settings the provider sets are:
754
+ - cluster.name
755
+ - cluster.apiServerEndpoint
756
+ - cluster.certificateAuthority
757
+ - cluster.cidr
758
+
759
+ Note: This is only applicable when using AL2023.
760
+ See for more details:
761
+ - https://awslabs.github.io/amazon-eks-ami/nodeadm/
762
+ - https://awslabs.github.io/amazon-eks-ami/nodeadm/doc/api/
763
+ """
764
+ return pulumi.get(self, "nodeadm_extra_options")
765
+
766
+ @nodeadm_extra_options.setter
767
+ def nodeadm_extra_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NodeadmOptionsArgs']]]]):
768
+ pulumi.set(self, "nodeadm_extra_options", value)
769
+
770
+ @_builtins.property
771
+ @pulumi.getter(name="operatingSystem")
772
+ def operating_system(self) -> Optional[pulumi.Input['OperatingSystem']]:
773
+ """
774
+ The type of OS to use for the node group. Will be used to determine the right EKS optimized AMI to use based on the instance types and gpu configuration.
775
+ Valid values are `RECOMMENDED`, `AL2`, `AL2023` and `Bottlerocket`.
776
+
777
+ Defaults to the current recommended OS.
778
+ """
779
+ return pulumi.get(self, "operating_system")
780
+
781
+ @operating_system.setter
782
+ def operating_system(self, value: Optional[pulumi.Input['OperatingSystem']]):
783
+ pulumi.set(self, "operating_system", value)
784
+
785
+ @_builtins.property
786
+ @pulumi.getter(name="spotPrice")
787
+ def spot_price(self) -> Optional[pulumi.Input[_builtins.str]]:
788
+ """
789
+ Bidding price for spot instance. If set, only spot instances will be added as worker node.
790
+ """
791
+ return pulumi.get(self, "spot_price")
792
+
793
+ @spot_price.setter
794
+ def spot_price(self, value: Optional[pulumi.Input[_builtins.str]]):
795
+ pulumi.set(self, "spot_price", value)
796
+
797
+ @_builtins.property
798
+ @pulumi.getter
799
+ def taints(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['TaintArgs']]]]:
800
+ """
801
+ Custom k8s node taints to be attached to each worker node. Adds the given taints to the `--register-with-taints` kubelet argument
802
+ """
803
+ return pulumi.get(self, "taints")
804
+
805
+ @taints.setter
806
+ def taints(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['TaintArgs']]]]):
807
+ pulumi.set(self, "taints", value)
808
+
809
+ @_builtins.property
810
+ @pulumi.getter
811
+ def version(self) -> Optional[pulumi.Input[_builtins.str]]:
812
+ """
813
+ Desired Kubernetes master / control plane version. If you do not specify a value, the latest available version is used.
814
+ """
815
+ return pulumi.get(self, "version")
816
+
817
+ @version.setter
818
+ def version(self, value: Optional[pulumi.Input[_builtins.str]]):
819
+ pulumi.set(self, "version", value)
820
+
821
+
822
+ warnings.warn("""NodeGroup uses AWS EC2 LaunchConfiguration which has been deprecated by AWS and doesn't support the newest instance types. Please use NodeGroupV2 instead.""", DeprecationWarning)
823
+
824
+
825
+ @pulumi.type_token("eks:index:NodeGroup")
826
+ class NodeGroup(pulumi.ComponentResource):
827
+ warnings.warn("""NodeGroup uses AWS EC2 LaunchConfiguration which has been deprecated by AWS and doesn't support the newest instance types. Please use NodeGroupV2 instead.""", DeprecationWarning)
828
+
829
+ @overload
830
+ def __init__(__self__,
831
+ resource_name: str,
832
+ opts: Optional[pulumi.ResourceOptions] = None,
833
+ ami_id: Optional[pulumi.Input[_builtins.str]] = None,
834
+ ami_type: Optional[pulumi.Input[_builtins.str]] = None,
835
+ auto_scaling_group_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
836
+ bootstrap_extra_args: Optional[pulumi.Input[_builtins.str]] = None,
837
+ bottlerocket_settings: Optional[pulumi.Input[Mapping[str, Any]]] = None,
838
+ cloud_formation_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
839
+ cluster: Optional[pulumi.Input[Union['Cluster', Union['CoreDataArgs', 'CoreDataArgsDict']]]] = None,
840
+ cluster_ingress_rule: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroupRule']] = None,
841
+ cluster_ingress_rule_id: Optional[pulumi.Input[_builtins.str]] = None,
842
+ desired_capacity: Optional[pulumi.Input[_builtins.int]] = None,
843
+ enable_detailed_monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
844
+ encrypt_root_block_device: Optional[pulumi.Input[_builtins.bool]] = None,
845
+ extra_node_security_groups: Optional[pulumi.Input[Sequence[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]]] = None,
846
+ gpu: Optional[pulumi.Input[_builtins.bool]] = None,
847
+ instance_profile: Optional['pulumi_aws.iam.InstanceProfile'] = None,
848
+ instance_profile_name: Optional[pulumi.Input[_builtins.str]] = None,
849
+ instance_type: Optional[pulumi.Input[_builtins.str]] = None,
850
+ key_name: Optional[pulumi.Input[_builtins.str]] = None,
851
+ kubelet_extra_args: Optional[pulumi.Input[_builtins.str]] = None,
852
+ labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
853
+ max_size: Optional[pulumi.Input[_builtins.int]] = None,
854
+ min_size: Optional[pulumi.Input[_builtins.int]] = None,
855
+ node_associate_public_ip_address: Optional[pulumi.Input[_builtins.bool]] = None,
856
+ node_public_key: Optional[pulumi.Input[_builtins.str]] = None,
857
+ node_root_volume_delete_on_termination: Optional[pulumi.Input[_builtins.bool]] = None,
858
+ node_root_volume_encrypted: Optional[pulumi.Input[_builtins.bool]] = None,
859
+ node_root_volume_iops: Optional[pulumi.Input[_builtins.int]] = None,
860
+ node_root_volume_size: Optional[pulumi.Input[_builtins.int]] = None,
861
+ node_root_volume_throughput: Optional[pulumi.Input[_builtins.int]] = None,
862
+ node_root_volume_type: Optional[pulumi.Input[_builtins.str]] = None,
863
+ node_security_group: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroup']] = None,
864
+ node_security_group_id: Optional[pulumi.Input[_builtins.str]] = None,
865
+ node_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
866
+ node_user_data: Optional[pulumi.Input[_builtins.str]] = None,
867
+ node_user_data_override: Optional[pulumi.Input[_builtins.str]] = None,
868
+ nodeadm_extra_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeadmOptionsArgs', 'NodeadmOptionsArgsDict']]]]] = None,
869
+ operating_system: Optional[pulumi.Input['OperatingSystem']] = None,
870
+ spot_price: Optional[pulumi.Input[_builtins.str]] = None,
871
+ taints: Optional[pulumi.Input[Mapping[str, pulumi.Input[Union['TaintArgs', 'TaintArgsDict']]]]] = None,
872
+ version: Optional[pulumi.Input[_builtins.str]] = None,
873
+ __props__=None):
874
+ """
875
+ NodeGroup is a component that wraps the AWS EC2 instances that provide compute capacity for an EKS cluster.
876
+
877
+ :param str resource_name: The name of the resource.
878
+ :param pulumi.ResourceOptions opts: Options for the resource.
879
+ :param pulumi.Input[_builtins.str] ami_id: The AMI ID to use for the worker nodes.
880
+
881
+ Defaults to the latest recommended EKS Optimized Linux AMI from the AWS Systems Manager Parameter Store.
882
+
883
+ Note: `amiId` and `gpu` are mutually exclusive.
884
+
885
+ See for more details:
886
+ - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html.
887
+ :param pulumi.Input[_builtins.str] ami_type: The AMI Type to use for the worker nodes.
888
+
889
+ Only applicable when setting an AMI ID that is of type `arm64`.
890
+
891
+ Note: `amiType` and `gpu` are mutually exclusive.
892
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] auto_scaling_group_tags: The tags to apply to the NodeGroup's AutoScalingGroup in the CloudFormation Stack.
893
+
894
+ Per AWS, all stack-level tags, including automatically created tags, and the `cloudFormationTags` option are propagated to resources that AWS CloudFormation supports, including the AutoScalingGroup. See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
895
+
896
+ Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
897
+ :param pulumi.Input[_builtins.str] bootstrap_extra_args: Additional args to pass directly to `/etc/eks/bootstrap.sh`. For details on available options, see: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh. Note that the `--apiserver-endpoint`, `--b64-cluster-ca` and `--kubelet-extra-args` flags are included automatically based on other configuration parameters.
898
+ :param pulumi.Input[Mapping[str, Any]] bottlerocket_settings: The configuration settings for Bottlerocket OS.
899
+ The settings will get merged with the base settings the provider uses to configure Bottlerocket.
900
+
901
+ This includes:
902
+ - settings.kubernetes.api-server
903
+ - settings.kubernetes.cluster-certificate
904
+ - settings.kubernetes.cluster-name
905
+ - settings.kubernetes.cluster-dns-ip
906
+
907
+ For an overview of the available settings, see https://bottlerocket.dev/en/os/1.20.x/api/settings/.
908
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] cloud_formation_tags: The tags to apply to the CloudFormation Stack of the Worker NodeGroup.
909
+
910
+ Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
911
+ :param pulumi.Input[Union['Cluster', Union['CoreDataArgs', 'CoreDataArgsDict']]] cluster: The target EKS cluster.
912
+ :param pulumi.Input['pulumi_aws.ec2.SecurityGroupRule'] cluster_ingress_rule: The ingress rule that gives node group access.
913
+ :param pulumi.Input[_builtins.str] cluster_ingress_rule_id: The ID of the ingress rule that gives node group access.
914
+ :param pulumi.Input[_builtins.int] desired_capacity: The number of worker nodes that should be running in the cluster. Defaults to 2.
915
+ :param pulumi.Input[_builtins.bool] enable_detailed_monitoring: Enables/disables detailed monitoring of the EC2 instances.
916
+
917
+ With detailed monitoring, all metrics, including status check metrics, are available in 1-minute intervals.
918
+ When enabled, you can also get aggregated data across groups of similar instances.
919
+
920
+ Note: You are charged per metric that is sent to CloudWatch. You are not charged for data storage.
921
+ For more information, see "Paid tier" and "Example 1 - EC2 Detailed Monitoring" here https://aws.amazon.com/cloudwatch/pricing/.
922
+ :param pulumi.Input[_builtins.bool] encrypt_root_block_device: Encrypt the root block device of the nodes in the node group.
923
+ :param pulumi.Input[Sequence[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]] extra_node_security_groups: Extra security groups to attach on all nodes in this worker node group.
924
+
925
+ This additional set of security groups captures any user application rules that will be needed for the nodes.
926
+ :param pulumi.Input[_builtins.bool] gpu: Use the latest recommended EKS Optimized Linux AMI with GPU support for the worker nodes from the AWS Systems Manager Parameter Store.
927
+
928
+ Defaults to false.
929
+
930
+ Note: `gpu` and `amiId` are mutually exclusive.
931
+
932
+ See for more details:
933
+ - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html
934
+ - https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html
935
+ :param 'pulumi_aws.iam.InstanceProfile' instance_profile: The IAM InstanceProfile to use on the NodeGroup. Properties instanceProfile and instanceProfileName are mutually exclusive.
936
+ :param pulumi.Input[_builtins.str] instance_profile_name: The name of the IAM InstanceProfile to use on the NodeGroup. Properties instanceProfile and instanceProfileName are mutually exclusive.
937
+ :param pulumi.Input[_builtins.str] instance_type: The instance type to use for the cluster's nodes. Defaults to "t3.medium".
938
+ :param pulumi.Input[_builtins.str] key_name: Name of the key pair to use for SSH access to worker nodes.
939
+ :param pulumi.Input[_builtins.str] kubelet_extra_args: Extra args to pass to the Kubelet. Corresponds to the options passed in the `--kubeletExtraArgs` flag to `/etc/eks/bootstrap.sh`. For example, '--port=10251 --address=0.0.0.0'. Note that the `labels` and `taints` properties will be applied to this list (using `--node-labels` and `--register-with-taints` respectively) after to the explicit `kubeletExtraArgs`.
940
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: Custom k8s node labels to be attached to each worker node. Adds the given key/value pairs to the `--node-labels` kubelet argument.
941
+ :param pulumi.Input[_builtins.int] max_size: The maximum number of worker nodes running in the cluster. Defaults to 2.
942
+ :param pulumi.Input[_builtins.int] min_size: The minimum number of worker nodes running in the cluster. Defaults to 1.
943
+ :param pulumi.Input[_builtins.bool] node_associate_public_ip_address: Whether or not to auto-assign public IP addresses on the EKS worker nodes. If this toggle is set to true, the EKS workers will be auto-assigned public IPs. If false, they will not be auto-assigned public IPs.
944
+ :param pulumi.Input[_builtins.str] node_public_key: Public key material for SSH access to worker nodes. See allowed formats at:
945
+ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
946
+ If not provided, no SSH access is enabled on VMs.
947
+ :param pulumi.Input[_builtins.bool] node_root_volume_delete_on_termination: Whether the root block device should be deleted on termination of the instance. Defaults to true.
948
+ :param pulumi.Input[_builtins.bool] node_root_volume_encrypted: Whether to encrypt a cluster node's root volume. Defaults to false.
949
+ :param pulumi.Input[_builtins.int] node_root_volume_iops: The amount of provisioned IOPS. This is only valid with a volumeType of 'io1'.
950
+ :param pulumi.Input[_builtins.int] node_root_volume_size: The size in GiB of a cluster node's root volume. Defaults to 20.
951
+ :param pulumi.Input[_builtins.int] node_root_volume_throughput: Provisioned throughput performance in integer MiB/s for a cluster node's root volume. This is only valid with a volumeType of 'gp3'.
952
+ :param pulumi.Input[_builtins.str] node_root_volume_type: Configured EBS type for a cluster node's root volume. Default is 'gp2'. Supported values are 'standard', 'gp2', 'gp3', 'st1', 'sc1', 'io1'.
953
+ :param pulumi.Input['pulumi_aws.ec2.SecurityGroup'] node_security_group: The security group for the worker node group to communicate with the cluster.
954
+
955
+ This security group requires specific inbound and outbound rules.
956
+
957
+ See for more details:
958
+ https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html
959
+
960
+ Note: The `nodeSecurityGroup` option and the cluster option`nodeSecurityGroupTags` are mutually exclusive.
961
+ :param pulumi.Input[_builtins.str] node_security_group_id: The ID of the security group for the worker node group to communicate with the cluster.
962
+
963
+ This security group requires specific inbound and outbound rules.
964
+
965
+ See for more details:
966
+ https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html
967
+
968
+ Note: The `nodeSecurityGroupId` option and the cluster option `nodeSecurityGroupTags` are mutually exclusive.
969
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] node_subnet_ids: The set of subnets to override and use for the worker node group.
970
+
971
+ Setting this option overrides which subnets to use for the worker node group, regardless if the cluster's `subnetIds` is set, or if `publicSubnetIds` and/or `privateSubnetIds` were set.
972
+ :param pulumi.Input[_builtins.str] node_user_data: Extra code to run on node startup. This code will run after the AWS EKS bootstrapping code and before the node signals its readiness to the managing CloudFormation stack. This code must be a typical user data script: critically it must begin with an interpreter directive (i.e. a `#!`).
973
+ :param pulumi.Input[_builtins.str] node_user_data_override: User specified code to run on node startup. This code is expected to handle the full AWS EKS bootstrapping code and signal node readiness to the managing CloudFormation stack. This code must be a complete and executable user data script in bash (Linux) or powershell (Windows).
974
+
975
+ See for more details: https://docs.aws.amazon.com/eks/latest/userguide/worker.html
976
+ :param pulumi.Input[Sequence[pulumi.Input[Union['NodeadmOptionsArgs', 'NodeadmOptionsArgsDict']]]] nodeadm_extra_options: Extra nodeadm configuration sections to be added to the nodeadm user data. This can be shell scripts, nodeadm NodeConfig or any other user data compatible script. When configuring additional nodeadm NodeConfig sections, they'll be merged with the base settings the provider sets. You can overwrite base settings or provide additional settings this way.
977
+ The base settings the provider sets are:
978
+ - cluster.name
979
+ - cluster.apiServerEndpoint
980
+ - cluster.certificateAuthority
981
+ - cluster.cidr
982
+
983
+ Note: This is only applicable when using AL2023.
984
+ See for more details:
985
+ - https://awslabs.github.io/amazon-eks-ami/nodeadm/
986
+ - https://awslabs.github.io/amazon-eks-ami/nodeadm/doc/api/
987
+ :param pulumi.Input['OperatingSystem'] operating_system: The type of OS to use for the node group. Will be used to determine the right EKS optimized AMI to use based on the instance types and gpu configuration.
988
+ Valid values are `RECOMMENDED`, `AL2`, `AL2023` and `Bottlerocket`.
989
+
990
+ Defaults to the current recommended OS.
991
+ :param pulumi.Input[_builtins.str] spot_price: Bidding price for spot instance. If set, only spot instances will be added as worker node.
992
+ :param pulumi.Input[Mapping[str, pulumi.Input[Union['TaintArgs', 'TaintArgsDict']]]] taints: Custom k8s node taints to be attached to each worker node. Adds the given taints to the `--register-with-taints` kubelet argument
993
+ :param pulumi.Input[_builtins.str] version: Desired Kubernetes master / control plane version. If you do not specify a value, the latest available version is used.
994
+ """
995
+ ...
996
+ @overload
997
+ def __init__(__self__,
998
+ resource_name: str,
999
+ args: NodeGroupArgs,
1000
+ opts: Optional[pulumi.ResourceOptions] = None):
1001
+ """
1002
+ NodeGroup is a component that wraps the AWS EC2 instances that provide compute capacity for an EKS cluster.
1003
+
1004
+ :param str resource_name: The name of the resource.
1005
+ :param NodeGroupArgs args: The arguments to use to populate this resource's properties.
1006
+ :param pulumi.ResourceOptions opts: Options for the resource.
1007
+ """
1008
+ ...
1009
+ def __init__(__self__, resource_name: str, *args, **kwargs):
1010
+ resource_args, opts = _utilities.get_resource_args_opts(NodeGroupArgs, pulumi.ResourceOptions, *args, **kwargs)
1011
+ if resource_args is not None:
1012
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
1013
+ else:
1014
+ __self__._internal_init(resource_name, *args, **kwargs)
1015
+
1016
+ def _internal_init(__self__,
1017
+ resource_name: str,
1018
+ opts: Optional[pulumi.ResourceOptions] = None,
1019
+ ami_id: Optional[pulumi.Input[_builtins.str]] = None,
1020
+ ami_type: Optional[pulumi.Input[_builtins.str]] = None,
1021
+ auto_scaling_group_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
1022
+ bootstrap_extra_args: Optional[pulumi.Input[_builtins.str]] = None,
1023
+ bottlerocket_settings: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1024
+ cloud_formation_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
1025
+ cluster: Optional[pulumi.Input[Union['Cluster', Union['CoreDataArgs', 'CoreDataArgsDict']]]] = None,
1026
+ cluster_ingress_rule: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroupRule']] = None,
1027
+ cluster_ingress_rule_id: Optional[pulumi.Input[_builtins.str]] = None,
1028
+ desired_capacity: Optional[pulumi.Input[_builtins.int]] = None,
1029
+ enable_detailed_monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
1030
+ encrypt_root_block_device: Optional[pulumi.Input[_builtins.bool]] = None,
1031
+ extra_node_security_groups: Optional[pulumi.Input[Sequence[pulumi.Input['pulumi_aws.ec2.SecurityGroup']]]] = None,
1032
+ gpu: Optional[pulumi.Input[_builtins.bool]] = None,
1033
+ instance_profile: Optional['pulumi_aws.iam.InstanceProfile'] = None,
1034
+ instance_profile_name: Optional[pulumi.Input[_builtins.str]] = None,
1035
+ instance_type: Optional[pulumi.Input[_builtins.str]] = None,
1036
+ key_name: Optional[pulumi.Input[_builtins.str]] = None,
1037
+ kubelet_extra_args: Optional[pulumi.Input[_builtins.str]] = None,
1038
+ labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
1039
+ max_size: Optional[pulumi.Input[_builtins.int]] = None,
1040
+ min_size: Optional[pulumi.Input[_builtins.int]] = None,
1041
+ node_associate_public_ip_address: Optional[pulumi.Input[_builtins.bool]] = None,
1042
+ node_public_key: Optional[pulumi.Input[_builtins.str]] = None,
1043
+ node_root_volume_delete_on_termination: Optional[pulumi.Input[_builtins.bool]] = None,
1044
+ node_root_volume_encrypted: Optional[pulumi.Input[_builtins.bool]] = None,
1045
+ node_root_volume_iops: Optional[pulumi.Input[_builtins.int]] = None,
1046
+ node_root_volume_size: Optional[pulumi.Input[_builtins.int]] = None,
1047
+ node_root_volume_throughput: Optional[pulumi.Input[_builtins.int]] = None,
1048
+ node_root_volume_type: Optional[pulumi.Input[_builtins.str]] = None,
1049
+ node_security_group: Optional[pulumi.Input['pulumi_aws.ec2.SecurityGroup']] = None,
1050
+ node_security_group_id: Optional[pulumi.Input[_builtins.str]] = None,
1051
+ node_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
1052
+ node_user_data: Optional[pulumi.Input[_builtins.str]] = None,
1053
+ node_user_data_override: Optional[pulumi.Input[_builtins.str]] = None,
1054
+ nodeadm_extra_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeadmOptionsArgs', 'NodeadmOptionsArgsDict']]]]] = None,
1055
+ operating_system: Optional[pulumi.Input['OperatingSystem']] = None,
1056
+ spot_price: Optional[pulumi.Input[_builtins.str]] = None,
1057
+ taints: Optional[pulumi.Input[Mapping[str, pulumi.Input[Union['TaintArgs', 'TaintArgsDict']]]]] = None,
1058
+ version: Optional[pulumi.Input[_builtins.str]] = None,
1059
+ __props__=None):
1060
+ pulumi.log.warn("""NodeGroup is deprecated: NodeGroup uses AWS EC2 LaunchConfiguration which has been deprecated by AWS and doesn't support the newest instance types. Please use NodeGroupV2 instead.""")
1061
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
1062
+ if not isinstance(opts, pulumi.ResourceOptions):
1063
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
1064
+ if opts.id is not None:
1065
+ raise ValueError('ComponentResource classes do not support opts.id')
1066
+ else:
1067
+ if __props__ is not None:
1068
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
1069
+ __props__ = NodeGroupArgs.__new__(NodeGroupArgs)
1070
+
1071
+ __props__.__dict__["ami_id"] = ami_id
1072
+ __props__.__dict__["ami_type"] = ami_type
1073
+ __props__.__dict__["auto_scaling_group_tags"] = auto_scaling_group_tags
1074
+ __props__.__dict__["bootstrap_extra_args"] = bootstrap_extra_args
1075
+ __props__.__dict__["bottlerocket_settings"] = bottlerocket_settings
1076
+ __props__.__dict__["cloud_formation_tags"] = cloud_formation_tags
1077
+ if cluster is None and not opts.urn:
1078
+ raise TypeError("Missing required property 'cluster'")
1079
+ __props__.__dict__["cluster"] = cluster
1080
+ __props__.__dict__["cluster_ingress_rule"] = cluster_ingress_rule
1081
+ __props__.__dict__["cluster_ingress_rule_id"] = cluster_ingress_rule_id
1082
+ __props__.__dict__["desired_capacity"] = desired_capacity
1083
+ __props__.__dict__["enable_detailed_monitoring"] = enable_detailed_monitoring
1084
+ __props__.__dict__["encrypt_root_block_device"] = encrypt_root_block_device
1085
+ __props__.__dict__["extra_node_security_groups"] = extra_node_security_groups
1086
+ __props__.__dict__["gpu"] = gpu
1087
+ __props__.__dict__["instance_profile"] = instance_profile
1088
+ __props__.__dict__["instance_profile_name"] = instance_profile_name
1089
+ __props__.__dict__["instance_type"] = instance_type
1090
+ __props__.__dict__["key_name"] = key_name
1091
+ __props__.__dict__["kubelet_extra_args"] = kubelet_extra_args
1092
+ __props__.__dict__["labels"] = labels
1093
+ __props__.__dict__["max_size"] = max_size
1094
+ __props__.__dict__["min_size"] = min_size
1095
+ __props__.__dict__["node_associate_public_ip_address"] = node_associate_public_ip_address
1096
+ __props__.__dict__["node_public_key"] = node_public_key
1097
+ __props__.__dict__["node_root_volume_delete_on_termination"] = node_root_volume_delete_on_termination
1098
+ __props__.__dict__["node_root_volume_encrypted"] = node_root_volume_encrypted
1099
+ __props__.__dict__["node_root_volume_iops"] = node_root_volume_iops
1100
+ __props__.__dict__["node_root_volume_size"] = node_root_volume_size
1101
+ __props__.__dict__["node_root_volume_throughput"] = node_root_volume_throughput
1102
+ __props__.__dict__["node_root_volume_type"] = node_root_volume_type
1103
+ __props__.__dict__["node_security_group"] = node_security_group
1104
+ __props__.__dict__["node_security_group_id"] = node_security_group_id
1105
+ __props__.__dict__["node_subnet_ids"] = node_subnet_ids
1106
+ __props__.__dict__["node_user_data"] = node_user_data
1107
+ __props__.__dict__["node_user_data_override"] = node_user_data_override
1108
+ __props__.__dict__["nodeadm_extra_options"] = nodeadm_extra_options
1109
+ __props__.__dict__["operating_system"] = operating_system
1110
+ __props__.__dict__["spot_price"] = spot_price
1111
+ __props__.__dict__["taints"] = taints
1112
+ __props__.__dict__["version"] = version
1113
+ __props__.__dict__["auto_scaling_group_name"] = None
1114
+ __props__.__dict__["cfn_stack"] = None
1115
+ super(NodeGroup, __self__).__init__(
1116
+ 'eks:index:NodeGroup',
1117
+ resource_name,
1118
+ __props__,
1119
+ opts,
1120
+ remote=True)
1121
+
1122
+ @_builtins.property
1123
+ @pulumi.getter(name="autoScalingGroupName")
1124
+ def auto_scaling_group_name(self) -> pulumi.Output[_builtins.str]:
1125
+ """
1126
+ The AutoScalingGroup name for the Node group.
1127
+ """
1128
+ return pulumi.get(self, "auto_scaling_group_name")
1129
+
1130
+ @_builtins.property
1131
+ @pulumi.getter(name="cfnStack")
1132
+ def cfn_stack(self) -> pulumi.Output['pulumi_aws.cloudformation.Stack']:
1133
+ """
1134
+ The CloudFormation Stack which defines the Node AutoScalingGroup.
1135
+ """
1136
+ return pulumi.get(self, "cfn_stack")
1137
+
1138
+ @_builtins.property
1139
+ @pulumi.getter(name="extraNodeSecurityGroups")
1140
+ def extra_node_security_groups(self) -> pulumi.Output[Sequence['pulumi_aws.ec2.SecurityGroup']]:
1141
+ """
1142
+ The additional security groups for the node group that captures user-specific rules.
1143
+ """
1144
+ return pulumi.get(self, "extra_node_security_groups")
1145
+
1146
+ @_builtins.property
1147
+ @pulumi.getter(name="nodeSecurityGroup")
1148
+ def node_security_group(self) -> pulumi.Output[Optional['pulumi_aws.ec2.SecurityGroup']]:
1149
+ """
1150
+ The security group for the node group to communicate with the cluster, or undefined if using `nodeSecurityGroupId`.
1151
+ """
1152
+ return pulumi.get(self, "node_security_group")
1153
+
1154
+ @_builtins.property
1155
+ @pulumi.getter(name="nodeSecurityGroupId")
1156
+ def node_security_group_id(self) -> pulumi.Output[_builtins.str]:
1157
+ """
1158
+ The ID of the security group for the node group to communicate with the cluster.
1159
+ """
1160
+ return pulumi.get(self, "node_security_group_id")
1161
+