CDNetworks Documentation Terraform Quick Start Install and configure Terraform

Install and configure Terraform

Last update:2025-01-14 17:48:32

Download the installation package

Go to the Terraform official website and download the installation package suitable for your system.
Unzip and configure the global path

Linux/MAC:

export PATH=$PATH:${可执行文件所在目录}

Windows:
Add the directory where the executable file is located to the system environment variable PATH
Verify whether the installation is successful

Run the following command to check whether the installation is successful.

terraform

After the command runs, a list of available Terraform options will be displayed, as shown below, indicating that the installation is complete.

Authentication

Static Credential Authentication

Create a provider.tf file in the user directory and enter the following content:

provider "cdnetworks" { secret_id = "accesskey-id" secret_key = "accesskey-secret" }

For the accesskey-id and accesskey-secret, go to the console-AccessKey Management to obtain
System Framework Upgrade

Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!