产品动态
安全公告
产品公告

# 以 NS 接入方式创建站点 example.comresource "tencentcloud_teo_zone" "zone" {zone_name = "example.com"# 通过 zone_available_plans 查询您可用的套餐信息plan_type = "<your-plan-type>"type = "full"paused = falsecname_speed_up = "enabled"}# 创建 example.com 的 DNS 记录resource "tencentcloud_teo_dns_record" "dns_record" {zone_id = tencentcloud_teo_zone.zone.idtype = "A"name = "example.com"# 开启 CDN 加速服务mode = "proxied"content = "<your-backend-ip>"ttl = 60}
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.
文档反馈