AutoScalingGroupOptions

class aws_cdk.aws_eks_v2.AutoScalingGroupOptions(*, bootstrap_enabled=None, bootstrap_options=None, machine_image_type=None)

Bases: object

Options for adding an AutoScalingGroup as capacity.

Parameters:
  • bootstrap_enabled (Optional[bool]) – 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(). Default: true

  • bootstrap_options (Union[BootstrapOptions, Dict[str, Any], None]) – Allows options for node bootstrapping through EC2 user data. Default: - default options

  • machine_image_type (Optional[MachineImageType]) – Allow options to specify different machine image type. Default: MachineImageType.AMAZON_LINUX_2

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks_v2 as eks_v2

auto_scaling_group_options = eks_v2.AutoScalingGroupOptions(
    bootstrap_enabled=False,
    bootstrap_options=eks_v2.BootstrapOptions(
        additional_args="additionalArgs",
        aws_api_retry_attempts=123,
        dns_cluster_ip="dnsClusterIp",
        docker_config_json="dockerConfigJson",
        enable_docker_bridge=False,
        kubelet_extra_args="kubeletExtraArgs",
        use_max_pods=False
    ),
    machine_image_type=eks_v2.MachineImageType.AMAZON_LINUX_2
)

Attributes

bootstrap_enabled

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().

Default:

true

bootstrap_options

Allows options for node bootstrapping through EC2 user data.

Default:
  • default options

machine_image_type

Allow options to specify different machine image type.

Default:

MachineImageType.AMAZON_LINUX_2