Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Memanggil AMI parameter publik di Parameter Store
Amazon Elastic Compute Cloud (AmazonEC2) Amazon Machine Image (AMI) parameter publik tersedia untuk Amazon Linux 1, Amazon Linux 2, Amazon Linux 2023 (AL2023), macOS, dan Windows Server dari jalur berikut:
-
Amazon Linux 1, Amazon Linux 2, dan Amazon Linux 2023:
/aws/service/ami-amazon-linux-latest
-
macOS:
/aws/service/ec2-macos
-
Windows Server:
/aws/service/ami-windows-latest
Memanggil AMI parameter publik untuk Amazon Linux 1, Amazon Linux 2, dan Amazon Linux 2023
Anda dapat melihat daftar semua Amazon Linux 1, Amazon Linux 2, dan Amazon Linux 2023 (AL2023) AMIs di saat ini Wilayah AWS dengan menggunakan perintah berikut di AWS Command Line Interface (AWS CLI).
Perintah tersebut mengembalikan informasi seperti berikut.
[ "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64", "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-6.1-arm64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-6.1-x86_64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-arm64", "/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-gp2", "/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-s3", "/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-ebs", "/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2", "/aws/service/ami-amazon-linux-latest/amzn2-ami-kernel-5.10-hvm-x86_64-ebs", "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-arm64", "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64", "/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-ebs", "/aws/service/ami-amazon-linux-latest/amzn-ami-minimal-hvm-x86_64-ebs", "/aws/service/ami-amazon-linux-latest/amzn-ami-minimal-hvm-x86_64-s3", "/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-arm64-gp2", "/aws/service/ami-amazon-linux-latest/amzn2-ami-kernel-5.10-hvm-arm64-gp2", "/aws/service/ami-amazon-linux-latest/amzn2-ami-kernel-5.10-hvm-x86_64-gp2", "/aws/service/ami-amazon-linux-latest/amzn2-ami-minimal-hvm-arm64-ebs", "/aws/service/ami-amazon-linux-latest/amzn2-ami-minimal-hvm-x86_64-ebs" ]
Anda dapat melihat detail tentang ini AMIs, termasuk AMI IDsdan Amazon Resource Names (ARNs), dengan menggunakan perintah berikut.
region
mewakili pengenal untuk yang Wilayah AWS
didukung oleh AWS Systems Manager, seperti us-east-2
untuk Wilayah AS Timur (Ohio). Untuk daftar yang didukung region
nilai, lihat kolom Region di titik akhir layanan Systems Manager di. Referensi Umum Amazon Web Services
Perintah tersebut mengembalikan informasi seperti berikut. Contoh output ini telah dipotong untuk ruang.
{ "Parameters": [ { "Name": "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64", "Type": "String", "Value": "ami-0b1b8b24a6c8e5d8b", "Version": 69, "LastModifiedDate": "2024-03-13T14:05:09.583000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64", "DataType": "text" }, { "Name": "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64", "Type": "String", "Value": "ami-0e0bf53f6def86294", "Version": 69, "LastModifiedDate": "2024-03-13T14:05:09.890000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64", "DataType": "text" }, { "Name": "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-6.1-arm64", "Type": "String", "Value": "ami-09951bb66f9e5b5a5", "Version": 69, "LastModifiedDate": "2024-03-13T14:05:10.197000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-6.1-arm64", "DataType": "text" } ] }
Anda dapat melihat detail spesifik AMI dengan menggunakan GetParametersAPIoperasi dengan penuh AMI Nama, termasuk jalurnya. Berikut ini adalah contoh perintah.
Perintah tersebut mengembalikan informasi berikut ini.
{ "Parameters": [ { "Name": "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64", "Type": "String", "Value": "ami-0b1b8b24a6c8e5d8b", "Version": 69, "LastModifiedDate": "2024-03-13T14:05:09.583000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64", "DataType": "text" } ], "InvalidParameters": [] }
Memanggil AMI parameter publik untuk macOS
Anda dapat melihat daftar semua macOS AMIs di saat ini Wilayah AWS dengan menggunakan perintah berikut di AWS CLI.
Perintah tersebut mengembalikan informasi seperti berikut.
[ "/aws/service/ec2-macos/sonoma/x86_64_mac/latest/image_id", "/aws/service/ec2-macos/ventura/x86_64_mac/latest/image_id", "/aws/service/ec2-macos/monterey/x86_64_mac/latest/image_id", "/aws/service/ec2-macos/sonoma/arm64_mac/latest/image_id", "/aws/service/ec2-macos/ventura/arm64_mac/latest/image_id", "/aws/service/ec2-macos/monterey/arm64_mac/latest/image_id" ]
Anda dapat melihat detail tentang ini AMIs, termasuk AMI IDsdan Amazon Resource Names (ARNs), dengan menggunakan perintah berikut.
region
mewakili pengenal untuk yang Wilayah AWS
didukung oleh AWS Systems Manager, seperti us-east-2
untuk Wilayah AS Timur (Ohio). Untuk daftar yang didukung region
nilai, lihat kolom Region di titik akhir layanan Systems Manager di. Referensi Umum Amazon Web Services
Perintah tersebut mengembalikan informasi seperti berikut. Contoh output ini telah dipotong untuk ruang.
{
"Parameters": [
...sample results pending...
]
}
Anda dapat melihat detail spesifik AMI dengan menggunakan GetParametersAPIoperasi dengan penuh AMI Nama, termasuk jalurnya. Berikut ini adalah contoh perintah.
Perintah tersebut mengembalikan informasi berikut ini.
{
"Parameters": [
...sample results pending...
],
"InvalidParameters": []
}
Memanggil AMI parameter publik untuk Windows Server
Anda dapat melihat daftar semua Windows Server AMIs di saat ini Wilayah AWS dengan menggunakan perintah berikut di AWS CLI.
Perintah tersebut mengembalikan informasi seperti berikut. Contoh output ini telah dipotong untuk ruang.
[ "/aws/service/ami-windows-latest/EC2LaunchV2-Windows_Server-2016-English-Full-Base", "/aws/service/ami-windows-latest/Windows_Server-2016-English-Full-SQL_2014_SP3_Enterprise", "/aws/service/ami-windows-latest/Windows_Server-2016-German-Full-Base", "/aws/service/ami-windows-latest/Windows_Server-2016-Japanese-Full-SQL_2016_SP3_Standard", "/aws/service/ami-windows-latest/Windows_Server-2016-Japanese-Full-SQL_2017_Web", "/aws/service/ami-windows-latest/Windows_Server-2019-English-Core-EKS_Optimized-1.25", "/aws/service/ami-windows-latest/Windows_Server-2019-Italian-Full-Base", "/aws/service/ami-windows-latest/Windows_Server-2022-Japanese-Full-SQL_2019_Enterprise", "/aws/service/ami-windows-latest/Windows_Server-2022-Portuguese_Brazil-Full-Base", "/aws/service/ami-windows-latest/amzn2-ami-hvm-2.0.20191217.0-x86_64-gp2-mono", "/aws/service/ami-windows-latest/Windows_Server-2016-English-Deep-Learning", "/aws/service/ami-windows-latest/Windows_Server-2016-Japanese-Full-SQL_2016_SP3_Web", "/aws/service/ami-windows-latest/Windows_Server-2016-Korean-Full-Base", "/aws/service/ami-windows-latest/Windows_Server-2019-English-STIG-Core", "/aws/service/ami-windows-latest/Windows_Server-2019-French-Full-Base", "/aws/service/ami-windows-latest/Windows_Server-2019-Japanese-Full-SQL_2017_Enterprise", "/aws/service/ami-windows-latest/Windows_Server-2019-Korean-Full-Base", "/aws/service/ami-windows-latest/Windows_Server-2022-English-Full-SQL_2022_Web", "/aws/service/ami-windows-latest/Windows_Server-2022-Italian-Full-Base", "/aws/service/ami-windows-latest/amzn2-x86_64-SQL_2019_Express", "/aws/service/ami-windows-latest/EC2LaunchV2-Windows_Server-2016-English-Core-Base", "/aws/service/ami-windows-latest/Windows_Server-2016-English-Full-SQL_2019_Enterprise", "/aws/service/ami-windows-latest/Windows_Server-2016-English-Full-SQL_2019_Standard", "/aws/service/ami-windows-latest/Windows_Server-2016-Portuguese_Portugal-Full-Base", "/aws/service/ami-windows-latest/Windows_Server-2019-English-Core-EKS_Optimized-1.24", "/aws/service/ami-windows-latest/Windows_Server-2019-English-Deep-Learning", "/aws/service/ami-windows-latest/Windows_Server-2019-English-Full-SQL_2017_Web", "/aws/service/ami-windows-latest/Windows_Server-2019-Hungarian-Full-Base ]
Anda dapat melihat detail tentang ini AMIs, termasuk AMI IDsdan Amazon Resource Names (ARNs), dengan menggunakan perintah berikut.
region
mewakili pengenal untuk yang Wilayah AWS
didukung oleh AWS Systems Manager, seperti us-east-2
untuk Wilayah AS Timur (Ohio). Untuk daftar yang didukung region
nilai, lihat kolom Region di titik akhir layanan Systems Manager di. Referensi Umum Amazon Web Services
Perintah tersebut mengembalikan informasi seperti berikut. Contoh output ini telah dipotong untuk ruang.
{ "Parameters": [ { "Name": "/aws/service/ami-windows-latest/EC2LaunchV2-Windows_Server-2016-English-Full-Base", "Type": "String", "Value": "ami-0a30b2e65863e2d16", "Version": 36, "LastModifiedDate": "2024-03-15T15:58:37.976000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-windows-latest/EC2LaunchV2-Windows_Server-2016-English-Full-Base", "DataType": "text" }, { "Name": "/aws/service/ami-windows-latest/Windows_Server-2016-English-Full-SQL_2014_SP3_Enterprise", "Type": "String", "Value": "ami-001f20c053dd120ce", "Version": 69, "LastModifiedDate": "2024-03-15T15:53:58.905000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-windows-latest/Windows_Server-2016-English-Full-SQL_2014_SP3_Enterprise", "DataType": "text" }, { "Name": "/aws/service/ami-windows-latest/Windows_Server-2016-German-Full-Base", "Type": "String", "Value": "ami-063be4935453e94e9", "Version": 102, "LastModifiedDate": "2024-03-15T15:51:12.003000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-windows-latest/Windows_Server-2016-German-Full-Base", "DataType": "text" } ] }
Anda dapat melihat detail spesifik AMI dengan menggunakan GetParametersAPIoperasi dengan penuh AMI Nama, termasuk jalurnya. Berikut ini adalah contoh perintah.
Perintah tersebut mengembalikan informasi berikut ini.
{ "Parameters": [ { "Name": "/aws/service/ami-windows-latest/EC2LaunchV2-Windows_Server-2016-English-Full-Base", "Type": "String", "Value": "ami-0a30b2e65863e2d16", "Version": 36, "LastModifiedDate": "2024-03-15T15:58:37.976000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/ami-windows-latest/EC2LaunchV2-Windows_Server-2016-English-Full-Base", "DataType": "text" } ], "InvalidParameters": [] }