

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

# `pcluster3-config-converter`
<a name="pcluster3-config-converter"></a>

讀取第 2 AWS ParallelCluster 版組態檔案，並寫入第 3 AWS ParallelCluster 版組態檔案。

```
pcluster3-config-converter [-h]                            
                [-t CLUSTER_TEMPLATE]
                [-c CONFIG_FILE]
                [--force-convert]
                [-o OUTPUT_FILE]
```

## 具名引數
<a name="pcluster3-config-converter.named.arguments"></a>

**-h, --help**  
顯示 的說明文字`pcluster3-config-converter`。

**-t *CLUSTER\$1TEMPLATE*, --cluster-template *CLUSTER\$1TEMPLATE***  
指定要轉換之組態檔案的 [`[cluster]`區段](https://docs.aws.amazon.com/parallelcluster/v2/ug/cluster-definition.html)。如果未指定，指令碼將在 [`[global]`區段](https://docs.aws.amazon.com/parallelcluster/v2/ug/global.html)中尋找 [cluster-template](https://docs.aws.amazon.com/parallelcluster/v2/ug/global.html#cluster-template) 參數，或將搜尋 `[cluster default]`。

**-c *CONFIG\$1FILE*, --config-file *CONFIG\$1FILE***  
指定要讀取的 AWS ParallelCluster 版本 2 組態檔案。

**--force-convert**  
即使不支援且不建議使用一或多個設定， 仍會啟用轉換。

**-o *OUTPUT\$1FILE*, --output-file *OUTPUT\$1FILE***  
指定要寫入的 AWS ParallelCluster 版本 3 組態檔案。如果未指定此參數，則組態會寫入 stdout。

**注意**  
`pcluster3-config-converter` 命令已在 3.0.1 AWS ParallelCluster 版中新增。