CreateLaunchTemplate#

Description#

Request to create a launch template. A launch template contains the parameters to create an instance. When you create an instance using RunInstances, you can specify a launch template in the request instead of launch parameters.

Request Parameters#

Required parameters#

  • LaunchTemplateData — The parameters of the launch template.

  • LaunchTemplateName — The name for the launch template.

    • Type: String

    • Required: Yes

    • Length constraints: from 3 to 255 characters

Optional parameters#

  • TagSpecification.N — The tags to assign to the launch template during creation.

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

    • Type: String

    • Required: No

    • Length constraints: from 0 to 255 characters

Response Elements#

  • launchTemplate — Information about the launch template.

  • requestId — The request ID

    • Type: String

Examples#

c2-ec2 CreateLaunchTemplate LaunchTemplateName test LaunchTemplateData.ImageId cmi-12345678

c2-ec2 CreateLaunchTemplate LaunchTemplateName test LaunchTemplateData.ImageId cmi-12345678 LaunchTemplateData.SecurityGroupId.1 sg-01234567