Sha256: 8dce71526e4dafd29eef08bd28fbe97cca38ef45efdd00904ecf3e5bfcae3e6d

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

Examples:

    $ aws-ec2 clean ami base-amazonlinux2
    $ aws-ec2 clean ami base-ubuntu --keep 5

Deletes old AMIs using the provided name as the base portion of the AMI name to search for.

Let's say you have these images:

    base-ubuntu_2018-03-25-04-20
    base-ubuntu_2018-03-25-03-39
    base-ubuntu_2018-03-25-02-57
    base-ubuntu_2018-03-25-02-47
    base-ubuntu_2018-03-25-02-43
    base-ubuntu_2018-03-23-00-15

Running:

    $ aws-ec2 clean ami base-ubuntu

Would delete all images and keep the 2 most recent AMIs.  The default `--keep` value is 2.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-ec2-1.3.0 lib/aws_ec2/help/clean/ami.md