AutoScalingGroupOptions

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

Bases: object

(deprecated) Options for adding an AutoScalingGroup as capacity.

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

  • map_role (Optional[bool]) – (deprecated) 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:

deprecated

ExampleMetadata:

fixture=_generated

Example:

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

auto_scaling_group_options = eks_legacy.AutoScalingGroupOptions(
    bootstrap_enabled=False,
    bootstrap_options=eks_legacy.BootstrapOptions(
        additional_args="additionalArgs",
        aws_api_retry_attempts=123,
        docker_config_json="dockerConfigJson",
        enable_docker_bridge=False,
        kubelet_extra_args="kubeletExtraArgs",
        use_max_pods=False
    ),
    map_role=False
)

Attributes

bootstrap_enabled

(deprecated) 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:

deprecated

bootstrap_options

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

Stability:

deprecated

map_role

(deprecated) 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:

deprecated