CreateLaunchTemplateVersion#

Description#

Request to create a new version for a launch template. You can specify an existing version of launch template version to use as the basis for the new version. Launch template versions are numbered in the order in which they are created. You cannot modify the numbering of launch template versions at your discretion.

Request Parameters#

Required parameters#

  • LaunchTemplateId — The ID of the launch template.

    • Type: String

    • Required: Yes, if LaunchTemplateName is not supplied

  • LaunchTemplateData — The parameters of the launch template.

  • LaunchTemplateName — The name of the launch template.

    • Type: String

    • Required: Yes, if LaunchTemplateId is not supplied

    • Length constraints: from 3 to 255 characters

Optional parameters#

  • SourceVersion — The version number of the launch template to use as the basis for the new version. The new version inherits the launch parameters of the source version, except for the parameters you specify in LaunchTemplateData.

    • Type: String

    • Required: No

  • VersionDescription — The description for the version of the launch template.

    • Type: String

    • Required: No

    • Length constraints: from 0 to 255 characters

Response Elements#

  • launchTemplateVersion — Information about the launch template version.

  • requestId — The request ID

    • Type: String

Examples#

c2-ec2 CreateLaunchTemplateVersion LaunchTemplateName test \

LaunchTemplateData.KeyName mysshkey \

LaunchTemplateData.ImageId cmi-12345678