imageId

The ID of the AMI in the format ami-0ac394d6a3example.

Alternatively, you can specify a Systems Manager parameter, using one of the following formats. The Systems Manager parameter will resolve to an AMI ID on launch.

To reference a public parameter:

  • resolve:ssm:<i>public-parameter</i>

To reference a parameter stored in the same account:

  • resolve:ssm:<i>parameter-name</i>

  • resolve:ssm:<i>parameter-name:version-number</i>

  • resolve:ssm:<i>parameter-name:label</i>

To reference a parameter shared from another Amazon Web Services account:

  • resolve:ssm:<i>parameter-ARN</i>

  • resolve:ssm:<i>parameter-ARN:version-number</i>

  • resolve:ssm:<i>parameter-ARN:label</i>

For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon EC2 User Guide.

If the launch template will be used for an EC2 Fleet or Spot Fleet, note the following:

  • Only EC2 Fleets of type instant support specifying a Systems Manager parameter.

  • For EC2 Fleets of type maintain or request, or for Spot Fleets, you must specify the AMI ID.