aws ec2 describe-images --filters

From wikieduonline
Jump to navigation Jump to search


aws ec2 describe-images --filters "Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-*23.04*amd64*" --query "sort_by(Images, &CreationDate)[-1].[Name, ImageId]" --owners 099720109477
[
    "ubuntu/images/hvm-ssd/ubuntu-lunar-23.04-amd64-server-20230619",
    "ami-0adb404c7b39774cd"
]


aws ec2 describe-images, ImageId, ImageLocation

Advertising: