This topic describes the preparations you need to complete before using Terraform to manage CR resources.
Background
Terraform is an open-source Infrastructure as Code (IaC) tool that supports managing cloud resources through declarative configuration files. Volcano Engine CR provides a Terraform Provider plugin. You can use Terraform to automatically create and manage CR instances and related resources.
Application scenarios
You need to create and manage CR instances in batches via code.
You need to incorporate CR resources into IaC for unified management.
You need to automatically create CR infrastructure within CI/CD pipelines.
Procedure
Step 1: Install Terraform
Install Terraform v0.12.31 or a later version. After the installation, you can run the following command to view the version information:
terraform version
Step 2: Configure the Volcano Engine Provider plugin
Add the terraform-provider-volcengine file to the ~/.terraform.d/plugins/darwin_amd64 directory and grant execute permission: