Difference between revisions of "Aws ec2 describe-images output"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
[[aws ec2 describe-images]] | [[aws ec2 describe-images]] | ||
+ | |||
+ | aws ec2 describe-images | grep [[ImageId]] | ||
+ | "ImageId": "ami-05be32995f403b058", | ||
aws ec2 describe-images | grep [[ImageId]] | wc -l | aws ec2 describe-images | grep [[ImageId]] | wc -l | ||
62215 | 62215 | ||
+ | |||
+ | == Example == | ||
+ | <pre> | ||
+ | { | ||
+ | "Images": [ | ||
+ | { | ||
+ | "Architecture": "x86_64", | ||
+ | "CreationDate": "2021-05-24T12:24:26.000Z", | ||
+ | "ImageId": "ami-05be32995f403b058", | ||
+ | "ImageLocation": "amazon/Cloud9Ubuntu-2021-05-24T11-34", | ||
+ | "ImageType": "machine", | ||
+ | "Public": true, | ||
+ | "OwnerId": "751997845865", | ||
+ | "PlatformDetails": "Linux/UNIX", | ||
+ | "UsageOperation": "RunInstances", | ||
+ | "State": "available", | ||
+ | "BlockDeviceMappings": [ | ||
+ | { | ||
+ | "DeviceName": "/dev/sda1", | ||
+ | "Ebs": { | ||
+ | "DeleteOnTermination": true, | ||
+ | "SnapshotId": "snap-00cbc38eb3ebc1de3", | ||
+ | "VolumeSize": 10, | ||
+ | "VolumeType": "gp2", | ||
+ | "Encrypted": false | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "DeviceName": "/dev/sdb", | ||
+ | "VirtualName": "ephemeral0" | ||
+ | }, | ||
+ | { | ||
+ | "DeviceName": "/dev/sdc", | ||
+ | "VirtualName": "ephemeral1" | ||
+ | } | ||
+ | ], | ||
+ | "Description": "Cloud9 Cloud9Ubuntu AMI", | ||
+ | "EnaSupport": true, | ||
+ | "Hypervisor": "xen", | ||
+ | "ImageOwnerAlias": "amazon", | ||
+ | "Name": "Cloud9Ubuntu-2021-05-24T11-34", | ||
+ | "RootDeviceName": "/dev/sda1", | ||
+ | "RootDeviceType": "ebs", | ||
+ | "SriovNetSupport": "simple", | ||
+ | "VirtualizationType": "hvm", | ||
+ | "DeprecationTime": "2023-05-24T12:24:26.000Z" | ||
+ | }, | ||
+ | .../... | ||
+ | |||
+ | { | ||
+ | "Architecture": "x86_64", | ||
+ | "CreationDate": "2022-12-28T20:54:49.000Z", | ||
+ | "ImageId": "ami-06be4329ed6be1b0e", | ||
+ | "ImageLocation": "amazon/amzn2-ami-ecs-inf-hvm-2.0.20221230-x86_64-ebs", | ||
+ | "ImageType": "machine", | ||
+ | "Public": true, | ||
+ | "OwnerId": "591542846629", | ||
+ | "PlatformDetails": "Linux/UNIX", | ||
+ | "UsageOperation": "RunInstances", | ||
+ | "State": "available", | ||
+ | "BlockDeviceMappings": [ | ||
+ | { | ||
+ | "DeviceName": "/dev/xvda", | ||
+ | "Ebs": { | ||
+ | "DeleteOnTermination": true, | ||
+ | "SnapshotId": "snap-008b5e524cd467b1e", | ||
+ | "VolumeSize": 30, | ||
+ | "VolumeType": "gp2", | ||
+ | "Encrypted": false | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | "Description": "Amazon Linux AMI 2.0.20221230 x86_64 ECS HVM GP2", | ||
+ | "EnaSupport": true, | ||
+ | "Hypervisor": "xen", | ||
+ | "ImageOwnerAlias": "amazon", | ||
+ | "Name": "amzn2-ami-ecs-inf-hvm-2.0.20221230-x86_64-ebs", | ||
+ | "RootDeviceName": "/dev/xvda", | ||
+ | "RootDeviceType": "ebs", | ||
+ | "SriovNetSupport": "simple", | ||
+ | "VirtualizationType": "hvm", | ||
+ | "DeprecationTime": "2024-12-28T20:54:49.000Z" | ||
+ | }, | ||
+ | </pre> | ||
+ | == Related == | ||
+ | * [[Amazon Elastic Block Store (EBS)]] | ||
== See also == | == See also == |
Latest revision as of 08:55, 25 September 2023
aws ec2 describe-images
aws ec2 describe-images | grep ImageId "ImageId": "ami-05be32995f403b058",
aws ec2 describe-images | grep ImageId | wc -l 62215
Example[edit]
{ "Images": [ { "Architecture": "x86_64", "CreationDate": "2021-05-24T12:24:26.000Z", "ImageId": "ami-05be32995f403b058", "ImageLocation": "amazon/Cloud9Ubuntu-2021-05-24T11-34", "ImageType": "machine", "Public": true, "OwnerId": "751997845865", "PlatformDetails": "Linux/UNIX", "UsageOperation": "RunInstances", "State": "available", "BlockDeviceMappings": [ { "DeviceName": "/dev/sda1", "Ebs": { "DeleteOnTermination": true, "SnapshotId": "snap-00cbc38eb3ebc1de3", "VolumeSize": 10, "VolumeType": "gp2", "Encrypted": false } }, { "DeviceName": "/dev/sdb", "VirtualName": "ephemeral0" }, { "DeviceName": "/dev/sdc", "VirtualName": "ephemeral1" } ], "Description": "Cloud9 Cloud9Ubuntu AMI", "EnaSupport": true, "Hypervisor": "xen", "ImageOwnerAlias": "amazon", "Name": "Cloud9Ubuntu-2021-05-24T11-34", "RootDeviceName": "/dev/sda1", "RootDeviceType": "ebs", "SriovNetSupport": "simple", "VirtualizationType": "hvm", "DeprecationTime": "2023-05-24T12:24:26.000Z" }, .../... { "Architecture": "x86_64", "CreationDate": "2022-12-28T20:54:49.000Z", "ImageId": "ami-06be4329ed6be1b0e", "ImageLocation": "amazon/amzn2-ami-ecs-inf-hvm-2.0.20221230-x86_64-ebs", "ImageType": "machine", "Public": true, "OwnerId": "591542846629", "PlatformDetails": "Linux/UNIX", "UsageOperation": "RunInstances", "State": "available", "BlockDeviceMappings": [ { "DeviceName": "/dev/xvda", "Ebs": { "DeleteOnTermination": true, "SnapshotId": "snap-008b5e524cd467b1e", "VolumeSize": 30, "VolumeType": "gp2", "Encrypted": false } } ], "Description": "Amazon Linux AMI 2.0.20221230 x86_64 ECS HVM GP2", "EnaSupport": true, "Hypervisor": "xen", "ImageOwnerAlias": "amazon", "Name": "amzn2-ami-ecs-inf-hvm-2.0.20221230-x86_64-ebs", "RootDeviceName": "/dev/xvda", "RootDeviceType": "ebs", "SriovNetSupport": "simple", "VirtualizationType": "hvm", "DeprecationTime": "2024-12-28T20:54:49.000Z" },
Related[edit]
See also[edit]
Advertising: