AutoScalingGroupOptions

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

Bases: object

(experimental) Options for adding an AutoScalingGroup as capacity.

Parameters
  • bootstrap_enabled (Optional[bool]) – (experimental) 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 (Optional[BootstrapOptions]) – (experimental) Allows options for node bootstrapping through EC2 user data. Default: - default options

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

  • map_role (Optional[bool]) – (experimental) Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC. This cannot be explicitly set to true if the cluster has kubectl disabled. Default: - true if the cluster has kubectl enabled (which is the default).

Stability

experimental

Attributes

bootstrap_enabled

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

Stability

experimental

Return type

Optional[bool]

bootstrap_options

(experimental) Allows options for node bootstrapping through EC2 user data.

Default
  • default options

Stability

experimental

Return type

Optional[BootstrapOptions]

machine_image_type

(experimental) Allow options to specify different machine image type.

Default

MachineImageType.AMAZON_LINUX_2

Stability

experimental

Return type

Optional[MachineImageType]

map_role

(experimental) Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.

This cannot be explicitly set to true if the cluster has kubectl disabled.

Default
  • true if the cluster has kubectl enabled (which is the default).

Stability

experimental

Return type

Optional[bool]