Difference between revisions of "Amazon AMI"
Jump to navigation
Jump to search
↑ https://aws.amazon.com/about-aws/whats-new/2022/03/amazon-machine-images-public-visibility-two-years/
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[wikipedia:Amazon AMI]] | [[wikipedia:Amazon AMI]] | ||
− | To obtain image AMI | + | To obtain image AMI ids: |
− | * <code>[[aws ec2 describe-images]]</code> | + | * <code>[[aws ec2 describe-images]]</code>: <code>[[aws ec2 describe-images output|output]]</code> |
+ | * <code>[[aws ec2 describe-instances]] | grep [[ImageId]]</code> | ||
* <code>[[curl http://169.254.169.254/latest/meta-data/ami-id]]</code> | * <code>[[curl http://169.254.169.254/latest/meta-data/ami-id]]</code> | ||
+ | |||
+ | |||
+ | * <code>[[aws ec2 describe-images --image-ids]]</code> | ||
* List of [[Debian9]] Image Id ([[ami]]): https://wiki.debian.org/Cloud/AmazonEC2Image/Stretch | * List of [[Debian9]] Image Id ([[ami]]): https://wiki.debian.org/Cloud/AmazonEC2Image/Stretch | ||
* <code>[[aws ssm get-parameters-by-path]] [[--path]] [[/aws/service/]]ami-amazon-linux-latest --query "Parameters[].Name"</code> | * <code>[[aws ssm get-parameters-by-path]] [[--path]] [[/aws/service/]]ami-amazon-linux-latest --query "Parameters[].Name"</code> | ||
− | |||
* <code>[[ami-06be4329ed6be1b0e]]: Amazon Linux AMI 2.0.20221230 [[x86_64]] [[ECS]] [[HVM]] [[GP2]]</code> | * <code>[[ami-06be4329ed6be1b0e]]: Amazon Linux AMI 2.0.20221230 [[x86_64]] [[ECS]] [[HVM]] [[GP2]]</code> | ||
Line 29: | Line 32: | ||
* Terraform resource: <code>[[aws_instance]]</code> and <code>[[ami]]</code> argument | * Terraform resource: <code>[[aws_instance]]</code> and <code>[[ami]]</code> argument | ||
* <code>[[terraform show]] | grep -i ami</code> | * <code>[[terraform show]] | grep -i ami</code> | ||
− | * ubuntu/images/hvm-ssd/ubuntu-[[xenial]]-16.04-amd64-server-20200814: ami-08d70e59c07c61a3a | + | * <code>[[ubuntu/images/]]hvm-ssd/ubuntu-[[xenial]]-16.04-amd64-server-20200814</code>: [[ami-08d70e59c07c61a3a]] |
* https://cloud-images.ubuntu.com/locator/ec2/ | * https://cloud-images.ubuntu.com/locator/ec2/ | ||
* [[AWS instance example with aws ami lookup]] | * [[AWS instance example with aws ami lookup]] | ||
* [[Amazon Linux]]: [[AL2022]], <code>[[amazon-linux-extras install epel]]</code> | * [[Amazon Linux]]: [[AL2022]], <code>[[amazon-linux-extras install epel]]</code> | ||
* [[Custom AMI]] | * [[Custom AMI]] | ||
+ | * [[lsb_release]] | ||
== See also == | == See also == |
Latest revision as of 12:20, 30 May 2024
To obtain image AMI ids:
aws ec2 describe-images
:output
aws ec2 describe-instances | grep ImageId
curl http://169.254.169.254/latest/meta-data/ami-id
- List of Debian9 Image Id (ami): https://wiki.debian.org/Cloud/AmazonEC2Image/Stretch
aws ssm get-parameters-by-path --path /aws/service/ami-amazon-linux-latest --query "Parameters[].Name"
ami-06be4329ed6be1b0e: Amazon Linux AMI 2.0.20221230 x86_64 ECS HVM GP2
AL:
News[edit]
- 03/2022 Amazon reduces visibility of public Amazon Machine Images (AMIs) older than two years[1]
Related terms[edit]
- Advanced Metering Infrastructure (AMI)
aws ec2 describe-images
aws ec2 describe-images --owners self amazon
- AMI Aptio V
- Terraform resource:
aws_instance
andami
argument terraform show | grep -i ami
ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20200814
: ami-08d70e59c07c61a3a- https://cloud-images.ubuntu.com/locator/ec2/
- AWS instance example with aws ami lookup
- Amazon Linux: AL2022,
amazon-linux-extras install epel
- Custom AMI
- lsb_release
See also[edit]
- AWS, AMI, AFI,
aws ec2 describe-images
, Amazon Linux, Amazon Linux 2,amazon-linux-extras
, AWS CreateImage - Amazon Linux: Amazon Linux 2, Amazon Linux 2023, AMI, amazon-linux-extras, al2022
- Amazon EC2 Instance types, computed optimized, memory optimized, high memory, AMI, Burstable, CPU credits, on-demand, spot, Karpenter,
t2, t3, t4g, r5, r6, c5 (c5a, c5ad), c6 (c6a, c6i), m5, m6i, m7i, c7i, c7g, r6g, r6i, G5, G6, x1
,aws ec2 describe-instance-types
,vCPU, VcpuLimitExceeded, im4gn
Advertising: