Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 572 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 572 Bytes

Demo how to use Terraform create DNS records in Tecent Cloud DNSPod

Prerequisites

  • Create a bucket for backend.tf to store Terraform state file
  • Generate API secrets in TecentCloud DNSPod Console
  • Provide credentials via TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY environment variables
$ export TENCENTCLOUD_SECRET_ID="my-secret-id"
$ export TENCENTCLOUD_SECRET_KEY="my-secret-key"

Deployment

terraform init

terraform plan

terraform apply

Cleanup

terraform destroy