pcluster update-cluster
Updates an existing cluster to match the settings of a specified configuration file.
pcluster update-cluster [-h] --cluster-configurationCLUSTER_CONFIGURATION--cluster-nameCLUSTER_NAME[--debug] [--dryrunDRYRUN] [--force-updateFORCE_UPDATE] [--queryQUERY] [--regionREGION] [--suppress-validatorsSUPPRESS_VALIDATORS[SUPPRESS_VALIDATORS...]] [--validation-failure-level {INFO,WARNING,ERROR}]
Named arguments
-h, --help-
Shows the help text for
pcluster update-cluster. --cluster-configuration, -cCLUSTER_CONFIGURATION-
Specifies the YAML cluster configuration file.
--cluster-name, -nCLUSTER_NAME-
Specifies the name of the cluster.
--debug-
Enables debug logging.
--dryrunDRYRUN-
When
true, performs the validation without updating the cluster and creating any resources. It can be used to validate the image configuration and update requirements. (Defaults tofalse.) --force-updateFORCE_UPDATE-
When
true, forces the update by ignoring the update validation errors. (Defaults tofalse.) --queryQUERY-
Specifies the JMESPath query to perform on the output.
--region, -rREGION-
Specifies the AWS Region to use. The AWS Region must be specified, using the Region setting in the cluster configuration file, the
AWS_DEFAULT_REGIONenvironment variable, theregionsetting in the[default]section of the~/.aws/configfile, or the--regionparameter. --suppress-validatorsSUPPRESS_VALIDATORS[SUPPRESS_VALIDATORS ...]-
Identifies one or more config validators to suppress.
Format: (
ALL|type:[A-Za-z0-9]+) --validation-failure-level{INFO,WARNING,ERROR}-
Specifies the level of validation failures reported for update.
Example using AWS ParallelCluster version 3.1.4:
$pcluster update-cluster -ccluster-config.yaml-ncluster-v3-rus-east-1{ "cluster": { "clusterName": "cluster-v3", "cloudformationStackStatus": "UPDATE_IN_PROGRESS", "cloudformationStackArn": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster-v3/1234abcd-56ef-78gh-90ij-abcd1234efgh", "region": "us-east-1", "version": "3.1.4", "clusterStatus": "UPDATE_IN_PROGRESS" }, "changeSet": [ { "parameter": "HeadNode.Iam.S3Access", "requestedValue": { "BucketName": "amzn-s3-demo-bucket1", "KeyName": "output", "EnableWriteAccess": false } }, { "parameter": "HeadNode.Iam.S3Access", "currentValue": { "BucketName": "amzn-s3-demo-bucket2", "KeyName": "logs", "EnableWriteAccess": true } } ] }