本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
通話 AMI 中的公有參數 Parameter Store
Amazon Elastic Compute Cloud (Amazon EC2) Amazon Machine Image (AMI) 公有參數可用於 Amazon Linux 1、Amazon Linux 2、Amazon Linux 2023 (AL2023)、macOS 和 Windows Server 從下列路徑:
-
Amazon Linux 1、Amazon Linux 2 和 Amazon Linux 2023:
/aws/service/ami-amazon-linux-latest
-
macOS:
/aws/service/ec2-macos
-
Windows Server:
/aws/service/ami-windows-latest
通話 AMI Amazon Linux 1、Amazon Linux 2 和 Amazon Linux 2023 的公有參數
您可以檢視所有 Amazon Linux 1、Amazon Linux 2 和 Amazon Linux 2023 (AL2023) 的清單 AMIs 目前 中的 AWS 區域 ,方法是使用 () AWS Command Line Interface 中的下列命令AWS CLI。
該命令會傳回相關資訊,如以下所示。
[ "/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" ]
您可以檢視這些詳細資訊 AMIs,包括 AMI IDs 和 Amazon Resource Names (ARNs),方法是使用下列命令。
region
代表 支援的 AWS 區域 識別符 AWS Systems Manager,例如us-east-2
美國東部 (俄亥俄) 區域。如需支援的清單 region
值,請參閱 中 Systems Manager 服務端點中的區域欄Amazon Web Services 一般參考。
該命令會傳回相關資訊,如以下所示。此範例輸出因空間不足已被截斷。
{ "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" } ] }
您可以檢視特定 的詳細資訊 AMI 透過將 GetParametersAPI操作與 完整 AMI 名稱,包括路徑。以下為範例命令。
此命令會傳回以下資訊。
{ "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": [] }
通話 AMI 的公有參數 macOS
您可以檢視所有 macOS AMIs 中的 , AWS 區域 方法是使用 中的下列命令 AWS CLI。
該命令會傳回相關資訊,如以下所示。
[ "/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" ]
您可以檢視這些詳細資訊 AMIs,包括 AMI IDs 和 Amazon Resource Names (ARNs),方法是使用下列命令。
region
代表 支援的 AWS 區域 識別符 AWS Systems Manager,例如us-east-2
美國東部 (俄亥俄) 區域。如需支援的清單 region
值,請參閱 中的 Systems Manager 服務端點中的區域欄Amazon Web Services 一般參考。
該命令會傳回相關資訊,如以下所示。此範例輸出因空間不足已被截斷。
{
"Parameters": [
...sample results pending...
]
}
您可以檢視特定 的詳細資訊 AMI 將 GetParametersAPI操作與 完整 AMI 名稱,包括路徑。以下為範例命令。
此命令會傳回以下資訊。
{
"Parameters": [
...sample results pending...
],
"InvalidParameters": []
}
通話 AMI 的公有參數 Windows Server
您可以檢視所有 Windows Server AMIs 中的 , AWS 區域 方法是使用 中的下列命令 AWS CLI。
該命令會傳回相關資訊,如以下所示。此範例輸出因空間不足已被截斷。
[ "/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 ]
您可以檢視這些詳細資訊 AMIs,包括 AMI IDs 和 Amazon Resource Names (ARNs),方法是使用下列命令。
region
代表 支援的 AWS 區域 識別符 AWS Systems Manager,例如us-east-2
美國東部 (俄亥俄) 區域。如需支援的清單 region
值,請參閱 中 Systems Manager 服務端點中的區域欄Amazon Web Services 一般參考。
該命令會傳回相關資訊,如以下所示。此範例輸出因空間不足已被截斷。
{ "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" } ] }
您可以檢視特定 的詳細資訊 AMI 將 GetParametersAPI操作與 完整 AMI 名稱,包括路徑。以下為範例命令。
此命令會傳回以下資訊。
{ "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": [] }