本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
更新 API
在本节中,您将了解如何使用两个可用选项之一更新 API。
升级到较新的 AWS ParallelCluster 版本
选项 1:通过删除相应的 AWS CloudFormation 堆栈并按照上文所示部署新 API 来移除现有 API。
选项 2:通过运行以下命令更新现有 API:
$
REGION=
<region>
$
API_STACK_NAME=
# This needs to correspond to the existing API stack name<stack-name>
$
VERSION=3.7.0
$
aws cloudformation update-stack \ --region ${REGION} \ --stack-name ${API_STACK_NAME} \ --template-url https://${REGION}-aws-parallelcluster.s3.${REGION}.amazonaws.com/parallelcluster/${VERSION}/api/parallelcluster-api.yaml \ --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND
$
aws cloudformation wait stack-update-complete --stack-name ${API_STACK_NAME} --region ${REGION}