amazon-web-serviceslaunch-configuration

change aws launch template name


I'm new to aws. How can I change AWS launch template name? I tried to run the command:

aws ec2 modify-launch-template --launch-template-id <ID> --launch-template-name <NEW_LAUNCH_TEMPLATE_NAME>

or adding the 'Name' tag, but without success.


Solution

  • You can't change the name of a LaunchConfiguration, there is no ModifyLaunchConfiguration API call available.

    However, you can create a new LaunchConfiguration with your new, desired name, based on the current one. There is the DescribeLaunchConfiguration call, which will give you the current details.

    Note that the CLI uses lower-case-with-dashes (create-launch-configuration) for the API names, while the documentation uses CamelCase (CreateLaunchConfiguration).