Skip to content

Instantly share code, notes, and snippets.

@sunaoka
Created December 12, 2023 02:34
Show Gist options
  • Select an option

  • Save sunaoka/64142bbbb8d30e5ec2ed69cc51bdbf10 to your computer and use it in GitHub Desktop.

Select an option

Save sunaoka/64142bbbb8d30e5ec2ed69cc51bdbf10 to your computer and use it in GitHub Desktop.
aws ec2 describe-images \
  --region ap-northeast-1 \
  --query 'reverse(sort_by(Images, &CreationDate))[:1]' \
  --owners amazon \
  --filters 'Name=name,Values=al2023-ami-minimal-*-arm64' \
  --output table
------------------------------------------------------------------------------------------------
|                                        DescribeImages                                        |
+--------------------+-------------------------------------------------------------------------+
|  Architecture      |  arm64                                                                  |
|  BootMode          |  uefi                                                                   |
|  CreationDate      |  2023-11-10T20:26:32.000Z                                               |
|  DeprecationTime   |  2024-02-08T20:27:00.000Z                                               |
|  Description       |  Amazon Linux 2023 AMI 2023.2.20231113.0 arm64 Minimal HVM kernel-6.1   |
|  EnaSupport        |  True                                                                   |
|  Hypervisor        |  xen                                                                    |
|  ImageId           |  ami-04ce4ec9b774982c6                                                  |
|  ImageLocation     |  amazon/al2023-ami-minimal-2023.2.20231113.0-kernel-6.1-arm64           |
|  ImageOwnerAlias   |  amazon                                                                 |
|  ImageType         |  machine                                                                |
|  ImdsSupport       |  v2.0                                                                   |
|  Name              |  al2023-ami-minimal-2023.2.20231113.0-kernel-6.1-arm64                  |
|  OwnerId           |  137112412989                                                           |
|  PlatformDetails   |  Linux/UNIX                                                             |
|  Public            |  True                                                                   |
|  RootDeviceName    |  /dev/xvda                                                              |
|  RootDeviceType    |  ebs                                                                    |
|  SriovNetSupport   |  simple                                                                 |
|  State             |  available                                                              |
|  UsageOperation    |  RunInstances                                                           |
|  VirtualizationType|  hvm                                                                    |
+--------------------+-------------------------------------------------------------------------+
||                                     BlockDeviceMappings                                    ||
|+-----------------------------------------------+--------------------------------------------+|
||  DeviceName                                   |  /dev/xvda                                 ||
|+-----------------------------------------------+--------------------------------------------+|
|||                                            Ebs                                           |||
||+-----------------------------------------+------------------------------------------------+||
|||  DeleteOnTermination                    |  True                                          |||
|||  Encrypted                              |  False                                         |||
|||  Iops                                   |  3000                                          |||
|||  SnapshotId                             |  snap-0c15858ad6e14fcc6                        |||
|||  Throughput                             |  125                                           |||
|||  VolumeSize                             |  8                                             |||
|||  VolumeType                             |  gp3                                           |||
||+-----------------------------------------+------------------------------------------------+||
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment