Skip to content

Latest commit

 

History

History

dnspod

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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