Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 2.49 KB

File metadata and controls

74 lines (57 loc) · 2.49 KB

AMI Usage

Run aec ami -h for help:

usage: aec ami [-h] {delete,describe,tags,share} ...

optional arguments:
  -h, --help            show this help message and exit

subcommands:
  {delete,describe,tags,share}
    delete              Deregister an AMI and delete its snapshot.
    describe            List AMIs.
    tags                List AMI images with their tags.
    share               Share an AMI with another account.

List images owned by accounts specified in the config file:

aec ami describe
                                                                                                    
  Name                             ImageId        CreationDate               RootDeviceName   Size  
 ────────────────────────────────────────────────────────────────────────────────────────────────── 
  ubuntu/images/hvm-ssd/ubuntu-…   ami-1e749f67   2025-10-30T10:58:45.000Z   /dev/sda1        15    
  ubuntu/images/hvm-ssd/ubuntu-…   ami-785db401   2025-10-30T10:58:45.000Z   /dev/sda1        15

List image by ids

aec ami describe ami-1e749f67 ami-785db401

List Amazon Deep Learning images:

aec ami describe --owner 898082745236

List ubuntu focal images owned by Canonical:

aec ami describe --owner 099720109477 -q ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64

List tags for images

aec ami tags 1234567890abcdef1 ami-abcdef12345678901

 ImageId                Name                  Tags
 ────────────────────────────────────────────────────────────────────────────────────
ami-1234567890abcdef1   Best Awesome Ubuntu   Team=Engineering, Source AMI=ami-12345
ami-abcdef12345678901   Best Awesome Linux    Team=Engineering, Source AMI=ami-67890