Delete Images
Delete EC2 images (AMI).
Images managed by AWS Backup cannot be deleted using this action. Instead, use Delete Backups.
Usage
Input
Parameter | Description | Type | Required | Default Value |
---|---|---|---|---|
image_ids | List of Image IDs to delete | list(string) | Yes | None |
include_snapshots | Delete snapshots associated with this image | bool | No | False |
region | Region for operation. Leave blank for session default | string | No | Session Default |
debug | Increase log verbosity | bool | No | False |
silent | Decrease log verbosity | bool | No | False |
output | Output format table | string | No | None |
session | Established session | object | No | None |
Output
Returns a list
of image IDs that failed the deletion:
['ami-1234567890abcdef0', 'ami-abcdef1234567890']