

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# `pcluster create-cluster`
<a name="pcluster.create-cluster-v3"></a>

建立 AWS ParallelCluster 叢集。

```
pcluster create-cluster [-h]
                 --cluster-configuration CLUSTER_CONFIGURATION
                 --cluster-name CLUSTER_NAME
                [--debug]
                [--dryrun DRYRUN]   
                [--query QUERY]
                [--region REGION]
                [--rollback-on-failure ROLLBACK_ON_FAILURE]
                [--suppress-validators SUPPRESS_VALIDATORS [SUPPRESS_VALIDATORS ...]]                        
                [--validation-failure-level {INFO,WARNING,ERROR}]
```

## 具名引數
<a name="pcluster-v3.create-cluster.namedargs"></a>

**-h, --help**  
顯示 的說明文字`pcluster create-cluster`。

**--cluster-configuration, -c *CLUSTER\$1CONFIGURATION***  
指定 YAML 叢集組態檔案。

**--cluster-name, -n *CLUSTER\$1NAME***  
指定要建立的叢集名稱。  
名稱必須以字母字元開頭。名稱最多可有 60 個字元。如果啟用Slurm會計，名稱最多可有 40 個字元。  
有效字元：a-z、A-Z、0-9 和 - （連字號）。

**--debug**  
啟用偵錯記錄。

**--dryrun *DRYRUN***  
當 時`true`，命令會執行驗證，而不建立任何資源。您可以使用它來驗證叢集組態。（預設為 `false`。)

**--query *QUERY***  
指定要在輸出上執行的 JMESPath 查詢。

**--region, -r *REGION***  
指定 AWS 區域 要使用的 。 AWS 區域 必須使用叢集組態檔案中[`Region`](cluster-configuration-file-v3.md#yaml-Region)的設定、`AWS_DEFAULT_REGION`環境變數、 `~/.aws/config` 檔案 `[default]`區段中的`region`設定或 `--region` 參數來指定 。

**--rollback-on-failure *ROLLBACK\$1ON\$1FAILURE***  
當 時`true`， 會在失敗時自動啟動叢集堆疊轉返。（預設為 `true`。)

**--suppress-validators *SUPPRESS\$1VALIDATORS* [*SUPPRESS\$1VALIDATORS* ...]**  
識別要隱藏的一或多個組態驗證器。  
 格式：(`ALL`\$1type：`[A-Za-z0-9]+`)

**--validation-failure-level \$1`INFO`,`WARNING`,`ERROR`\$1**  
指定會導致建立失敗的最低驗證層級。（預設為 `ERROR`。)

**使用 3.1.4 AWS ParallelCluster 版的範例：**

```
$ pcluster create-cluster -c cluster-config.yaml -n cluster-v3
{
  "cluster": {
    "clusterName": "cluster-v3",
    "cloudformationStackStatus": "CREATE_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": "CREATE_IN_PROGRESS"
  }
}
```