- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
Development guide
Terraform
Managing existing clusters by using Terraform
Terraform
Managing existing clusters by using Terraform
Managing existing clusters by using Terraform
This topic describes how to use Terraform to manage existing clusters that were not created by Terraform.
Prerequisites
- Terraform has been installed. For details, see Preparations.
Procedure
- Create a folder and a configuration file named main.tf in the folder.
- Initialize the Terraform environment.
- The expected result is as follows.
tip
The k7omvqtofl******** part is the ID of the cluster to be imported. You can query the cluster ID on the Basic information page of the cluster overview page in the VKE console.
- The expected result is as follows.
- The terraform.tfstate file holds information about the imported cluster. An example is shown below:
- Fill in the required fields and the fields that need to match in main.tf based on the terraform.tfstate file.
- Perform resource planning.
- The expected result is as follows.
Last updated: 2026.07.23 14:31:47