twoliter icon indicating copy to clipboard operation
twoliter copied to clipboard

image_id SSM parameters should use `aws:ec2:image` data type

Open bcressey opened this issue 3 years ago • 0 comments

What I'd like: I'd like for the image_id parameters to have the aws:ec2:image data type, so that they can be used directly by the EC2 RunInstances API.

aws ec2 run-instances --image-id "resolve:ssm:/path/to/parameter" ...

The image_version parameters should continue to use the text data type.

Note that the data type can't be changed for existing parameters.

Any alternatives you've considered: Alternatives for dealing with existing parameters:

  • only support the aws:ec2:image data type for new variants
  • teach pubsys to fall back to updating the value as text if it encounters an exception updating the value as aws:ec2:image
  • add another parameter (ec2_image_id) with the new data type
  • add an "API" prefix to the path ({variant}/{arch}/2022-12-12/image_id) and continue publishing the old data type under ({variant}/{arch}/image_id)

bcressey avatar Nov 21 '22 22:11 bcressey