Skip to content

Launch Templates vs Launch Configurations #1153

@NevRA

Description

@NevRA

Summary

I received a message from AWS
We have identified that one or more of your accounts uses Amazon EC2 Auto Scaling launch configurations. After December 31, 2022 no new Amazon Elastic Compute Cloud (Amazon EC2) instance types will be added to launch configurations. After this date, existing launch configurations will continue to work, but new EC2 instances will only be supported through launch templates. In 2021, through email notifications, console banners, documentation updates, re:Post banners, and a blog post [1], AWS announced that Amazon EC2 Auto Scaling would stop adding new EC2 instance types to launch configurations [2] by the end of 2022. Launch templates [3] exceed launch configurations in functionality. In addition to supporting all new EC2 instance types, launch templates provides a simple way to combine multiple instance types and purchase options, configure instance networking settings, use these settings with other AWS services, and maintain versions of these settings. You can convert your launch configurations to launch templates using the AWS Management Console

Is it possible to configure Launch Templates using AWS ECS cli?

Description

I'm using below commands:

ecs-cli configure profile --access-key $AWS_ACCESS_KEY_ID --secret-key $AWS_SECRET_ACCESS_KEY --profile-name $ECS_PROFILE

ecs-cli configure --cluster $ECS_CLUSTER --default-launch-type EC2 --config-name $ECS_CLUSTER_CONFIG --region $AWS_REGION

ecs-cli up --keypair pair-key --capability-iam --size 1 --instance-type t2.xlarge --cluster-config $ECS_CLUSTER_CONFIG --ecs-profile $ECS_PROFILE

ecs-cli compose create --create-log-groups --cluster-config $ECS_CLUSTER_CONFIG --ecs-profile $ECS_PROFILE

Expected Behavior

To create Launch Templates instead of Launch Configurations

Observed Behavior

Deprecated Launch Configuration created

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