You need to enable JavaScript to run this app.
Container Registry

Container Registry

Copy page
Download PDF
Terraform
Preparations
Copy page
Download PDF
Preparations
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:​
​
​
terraform-provider-volcengine
​
​
​
chmod 755 ~/.terraform.d/plugins/darwin_amd64/terraform-provider-volcengine​
​
Step 3: Obtain account key and region information​
You have obtained the key of your Volcano Engine account and the information about the region where the target instance is located.​
​
Parameter​
Description​
access_key​
The AccessKey ID (AK) of your Volcano Engine account. For how to obtain it, see API access key management.​
secret_key​
The Secret Access Key (SK) of your Volcano Engine account. For how to obtain it, see API access key management.​
region​
The Region where your CR business is located. For example, cn-guangzhou.​
​
​
Last updated: 2026.10.19 15:46:51