
# Create the `example.com` site with NS accessresource "tencentcloud_teo_zone" "zone" {zone_name = "example.com"# Query available plans by `zone_available_plans`plan_type = "<your-plan-type>"type = "full"paused = falsecname_speed_up = "enabled"}# Create the DNS record of `example.com`resource "tencentcloud_teo_dns_record" "dns_record" {zone_id = tencentcloud_teo_zone.zone.idtype = "A"name = "example.com"# Enable the CDN acceleration servicemode = "proxied"content = "<your-backend-ip>"ttl = 60}
terraform plan command to generate an execution plan, which shows the state of Terraform when apply is called. This allows you to avoid incidents when the infrastructure is manipulated on Terraform, as shown in the following example:Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:+ createTerraform will perform the following actions:# tencentcloud_teo_dns_record.dns_record will be created+ resource "tencentcloud_teo_dns_record" "dns_record" {+ cname = (known after apply)+ content = "<your-backend-ip>"+ created_on = (known after apply)+ domain_status = (known after apply)+ id = (known after apply)+ locked = (known after apply)+ mode = "proxied"+ modified_on = (known after apply)+ name = "example.com"+ priority = (known after apply)+ type = "A"+ status = (known after apply)+ ttl = 60+ zone_id = (known after apply)}# tencentcloud_teo_zone.zone will be created+ resource "tencentcloud_teo_zone" "zone" {+ area = (known after apply)+ cname_speed_up = "enabled"+ cname_status = (known after apply)+ created_on = (known after apply)+ id = (known after apply)+ modified_on = (known after apply)+ name = "example.com"+ name_servers = (known after apply)+ original_name_servers = (known after apply)+ paused = false+ plan_type = "sta"+ status = (known after apply)+ type = "full"+ vanity_name_servers_ips = (known after apply)+ vanity_name_servers {+ servers = (known after apply)+ switch = (known after apply)}}Plan: 2 to add, 0 to change, 0 to destroy.───────────────────────────────────────────────────────────────────────────────Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
Doc Feedback