I am trying to copy an ami to a different region than the source ami, E.g. copy and image from us-east-1 to us-east-2, and doing this via systems manager automation. The aws documentation says
To copy an AMI from one Region to another, specify the source Region using the SourceRegion parameter, and specify the destination Region using its endpoint.
But the "request parameters" section doesn't show anything for destination region. Only "DestinationOutpostArn"
I have tried "DestinationRegion" but this has errored with:
Error: updating SSM Document: InvalidDocumentContent: Unknown input names provided. Known=[ [ImageName, KmsKeyId, Encrypted, ImageDescription, ClientToken, SourceImageId, SourceRegion] ], Provided=[ [SourceImageId, SourceRegion, ImageName, Encrypted, KmsKeyId, DestinationRegion] ].
So it doesn't recognise "DestinationRegion".
I can see "DestinationRegion" is also not listed in the aws:copyImage automation documentation
What is the endpoint the aws docs are referring to and how do I reference it? Or is it not possible to copy an image to a different region this way?