pcluster list-official-images - Amazon ParallelCluster
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

pcluster list-official-images

描述官方 Amazon ParallelCluster AMI。

pcluster list-official-images [-h] [--architecture ARCHITECTURE] [--debug] [--os OS] [--query QUERY] [--region REGION]

命名的参数

-h, --help

显示 pcluster list-official-images 的帮助文本。

--architecture ARCHITECTURE

指定要用于筛选结果的架构。如果未指定此参数,则返回所有架构。

--debug

启用调试日志记录。

--os OS

指定要用于筛选结果的操作系统。如果未指定此参数,则返回所有操作系统。

--query QUERY

指定要对输出执行的 JMESPath 查询。

--region, -r REGION

指定 Amazon Web Services 区域 要使用的。 Amazon Web Services 区域 必须使用图像配置文件中的 “区域” 设置、AWS_DEFAULT_REGION环境变量、文件[default]部分中的region~/.aws/config设置或--region参数来指定。

使用 Amazon ParallelCluster 版本 3.1.2 的示例:

$ pcluster list-official-images { "images": [ { "amiId": "ami-015cfeb4e0d6306b2", "os": "ubuntu2004", "name": "aws-parallelcluster-3.1.2-ubuntu-2004-lts-hvm-x86_64-202202261505 2022-02-26T15-08-34.759Z", "version": "3.1.2", "architecture": "x86_64" }, { "amiId": "ami-036f23237ce49d25b", "os": "ubuntu2204", "name": "aws-parallelcluster-3.1.2-ubuntu-1804-lts-hvm-x86_64-202202261505 2022-02-26T15-08-17.558Z", "version": "3.1.2", "architecture": "x86_64" }, { "amiId": "ami-09e5327e694d89ef4", "os": "ubuntu2004", "name": "aws-parallelcluster-3.1.2-ubuntu-2004-lts-hvm-arm64-202202261505 2022-02-26T15-08-45.736Z", "version": "3.1.2", "architecture": "arm64" }, { "amiId": "ami-0b9b0874c35f626ae", "os": "alinux2", "name": "aws-parallelcluster-3.1.2-amzn2-hvm-x86_64-202202261505 2022-02-26T15-08-31.311Z", "version": "3.1.2", "architecture": "x86_64" }, { "amiId": "ami-0bf6d01f398f3737e", "os": "centos7", "name": "aws-parallelcluster-3.1.2-centos7-hvm-x86_64-202202261505 2022-02-26T15-08-25.001Z", "version": "3.1.2", "architecture": "x86_64" }, { "amiId": "ami-0d0de4f95f56374bc", "os": "alinux2", "name": "aws-parallelcluster-3.1.2-amzn2-hvm-arm64-202202261505 2022-02-26T15-08-46.088Z", "version": "3.1.2", "architecture": "arm64" }, { "amiId": "ami-0ebf7bc54b8740dc6", "os": "ubuntu2204", "name": "aws-parallelcluster-3.1.2-ubuntu-1804-lts-hvm-arm64-202202261505 2022-02-26T15-08-45.293Z", "version": "3.1.2", "architecture": "arm64" } ] }