aws:deleteImage – Delete an Amazon Machine Image - AWS Systems Manager
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

aws:deleteImage – Delete an Amazon Machine Image

Deletes the specified Amazon Machine Image (AMI) and all related snapshots.

Note

The aws:deleteImage action supports automatic throttling retry. For more information, see Configuring automatic retry for throttled operations.

Input

This action supports only one parameter. For more information, see the documentation for DeregisterImage and DeleteSnapshot.

YAML
name: deleteMyImage action: aws:deleteImage maxAttempts: 3 timeoutSeconds: 180 onFailure: Abort inputs: ImageId: ami-12345678
JSON
{ "name": "deleteMyImage", "action": "aws:deleteImage", "maxAttempts": 3, "timeoutSeconds": 180, "onFailure": "Abort", "inputs": { "ImageId": "ami-12345678" } }
ImageId

The ID of the image to be deleted.

Type: String

Required: Yes

Output

None