AutoScalingGroupOptions Struct
Options for adding an AutoScalingGroup as capacity.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks_v2 as eks_v2 } from 'aws-cdk-lib';
const autoScalingGroupOptions: eks_v2.AutoScalingGroupOptions = {
bootstrapEnabled: false,
bootstrapOptions: {
additionalArgs: 'additionalArgs',
awsApiRetryAttempts: 123,
dnsClusterIp: 'dnsClusterIp',
dockerConfigJson: 'dockerConfigJson',
enableDockerBridge: false,
kubeletExtraArgs: 'kubeletExtraArgs',
useMaxPods: false,
},
machineImageType: eks_v2.MachineImageType.AMAZON_LINUX_2,
};
Properties
bootstrapEnabledbooleanbootstrap_enabledboolbootstrapEnabledBooleanBootstrapEnabledboolBootstrapEnabled*bool= true#Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke `/etc/eks/bootstrap.sh`) and associate it with the EKS cluster.
If you wish to provide a custom user data script, set this to false and manually invoke autoscalingGroup.addUserData().
bootstrapOptionsBootstrapOptionsbootstrap_optionsBootstrapOptionsbootstrapOptionsBootstrapOptionsBootstrapOptionsBootstrapOptionsBootstrapOptionsBootstrapOptions= default options#Allows options for node bootstrapping through EC2 user data.
machineImageTypeMachineImageTypemachine_image_typeMachineImageTypemachineImageTypeMachineImageTypeMachineImageTypeMachineImageTypeMachineImageTypeMachineImageType= MachineImageType.AMAZON_LINUX_2#Allow options to specify different machine image type.