

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

# AWS ParallelCluster 適用於 Terraform
<a name="terraform-what-is"></a>

從 AWS ParallelCluster 3.8.0 開始，您可以使用 [Terraform](https://www.terraform.io/) 部署叢集和自訂映像。若要開始使用此功能，請參閱 [Terraform 登錄檔中的 Terraform Provider for AWS ParallelCluster](https://registry.terraform.io/providers/aws-tf/aws-parallelcluster/latest)。

**注意**  
您必須在帳戶中部署 [ParallelCluster API](https://docs.aws.amazon.com//parallelcluster/latest/ug/api-reference-v3.html)，才能使用提供者。

使用以下圖表來判斷提供者與 AWS ParallelCluster 版本之間的相容性：


| 供應商版本 | AWS ParallelCluster 版本 | 
| --- | --- | 
| 1.0.0 | 3.8.0-3.10.1 | 
| 1.1.0 | 3.11.0\+ | 

請參閱如何使用提供者[的範例](https://github.com/aws-tf/terraform-provider-aws-parallelcluster/tree/main/examples)。

若要獲得更順暢的體驗，請使用 [Terraform Registry AWS 的 ParallelCluster 官方 Terraform 模組](https://registry.terraform.io/modules/aws-tf/parallelcluster/aws/latest)。模組可讓您部署：

1. ParallelCluster API 

1. 以 YAML 組態檔案和 HCL 定義的 ParallelCluster 叢集

1. ParallelCluster 叢集所需的網路基礎設施

請參閱如何使用 模組[的範例](https://github.com/aws-tf/terraform-aws-parallelcluster/tree/main/examples)。