다큐멘트 센터 Terraform Quick Start Install and configure Terraform

Install and configure Terraform

최신 업데이트: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
image.png

이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.