【问题标题】:change aws launch template name更改 aws 启动模板名称
【发布时间】:2020-01-09 11:46:08
【问题描述】:

我是 AWS 新手。如何更改 AWS 启动模板名称? 我尝试运行命令:

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

或添加“名称”标签,但没有成功。

【问题讨论】:

    标签: amazon-web-services launch-configuration


    【解决方案1】:

    您不能更改 LaunchConfiguration 的名称,没有 ModifyLaunchConfiguration API call available

    但是,您可以在当前名称的基础上使用您想要的新名称创建一个新的 LaunchConfiguration。有 DescribeLaunchConfiguration 调用,它将为您提供当前详细信息。

    请注意,CLI 使用带破折号的小写字母 (create-launch-configuration) 作为 API 名称,而文档使用 CamelCase (CreateLaunchConfiguration)。

    【讨论】:

    • 好的,谢谢!但是以后如何更改托管节点组上的自动缩放组?因为它是由节点组创建的..
    猜你喜欢
    • 2018-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-16
    • 1970-01-01
    • 2019-07-02
    • 2013-11-14
    • 2018-12-17
    相关资源
    最近更新 更多