twoliter
twoliter copied to clipboard
image_id SSM parameters should use `aws:ec2:image` data type
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:imagedata type for new variants - teach
pubsysto fall back to updating the value astextif it encounters an exception updating the value asaws: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)