Skip to content

Support for autoscaling group AMI override #1498

@GaruGaru

Description

@GaruGaru

Is your request related to a new offering from AWS?

https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html

Is your request related to a problem? Please describe.

Since aws has introduced eks support for arm instances the module should also support the creation of asg with mixed instance type (arm64, x64).

The suggested way to implement this feature is to create multiple launchtemplates and overriding the default launch template with a specific one related to the instance type.

Describe the solution you'd like.

The module should provide a way to override the launchtemplate inside the mixed_instances_policy of aws_autoscaling_group as defined in the aws examples.

At the moment the feature is only supported for the instance_type by providing the override_instance_types variable:

dynamic "override" {
for_each = lookup(
var.worker_groups_launch_template[count.index],
"override_instance_types",
local.workers_group_defaults["override_instance_types"]
)
content {
instance_type = override.value
}
}

The module should also define launch_template_specification if needed

      override {
        instance_type = override.value
        launch_template_specification {
          launch_template_id = <instance_launch_template_id>
        } 
      }

We can introduce a new parameter such as override_instance_type_launch_template that allow users to provide instance_type to launch_template_id association.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions