@@ -13,23 +13,56 @@ Provide a resource to create a Private Dns Zone.
1313
1414## Example Usage
1515
16+ ### Create a basic Private Dns Zone
17+
1618``` hcl
17- resource "tencentcloud_private_dns_zone" "foo" {
19+ resource "tencentcloud_vpc" "vpc" {
20+ name = "vpc-example"
21+ cidr_block = "10.0.0.0/16"
22+ }
23+
24+ resource "tencentcloud_private_dns_zone" "example" {
1825 domain = "domain.com"
19- tags {
20- "created_by" : "terraform"
26+ remark = "remark."
27+
28+ vpc_set {
29+ region = "ap-guangzhou"
30+ uniq_vpc_id = tencentcloud_vpc.vpc.id
2131 }
32+
33+ dns_forward_status = "DISABLED"
34+ cname_speedup_status = "ENABLED"
35+
36+ tags = {
37+ createdBy : "terraform"
38+ }
39+ }
40+ ```
41+
42+ ### Create a Private Dns Zone domain and bind associated accounts'VPC
43+
44+ ``` hcl
45+ resource "tencentcloud_private_dns_zone" "example" {
46+ domain = "domain.com"
47+ remark = "remark."
48+
2249 vpc_set {
2350 region = "ap-guangzhou"
24- uniq_vpc_id = " vpc-xxxxx"
51+ uniq_vpc_id = tencentcloud_vpc. vpc.id
2552 }
26- remark = "test"
27- dns_forward_status = "DISABLED"
53+
2854 account_vpc_set {
29- uin = "454xxxxxxx"
55+ uin = "123456789"
56+ uniq_vpc_id = "vpc-adsebmya"
3057 region = "ap-guangzhou"
31- uniq_vpc_id = "vpc-xxxxx"
32- vpc_name = "test-redis"
58+ vpc_name = "vpc-name"
59+ }
60+
61+ dns_forward_status = "DISABLED"
62+ cname_speedup_status = "ENABLED"
63+
64+ tags = {
65+ createdBy : "terraform"
3366 }
3467}
3568```
@@ -40,6 +73,7 @@ The following arguments are supported:
4073
4174* ` domain ` - (Required, String) Domain name, which must be in the format of standard TLD.
4275* ` account_vpc_set ` - (Optional, List) List of authorized accounts' VPCs to associate with the private domain.
76+ * ` cname_speedup_status ` - (Optional, String) CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
4377* ` dns_forward_status ` - (Optional, String) Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
4478* ` remark ` - (Optional, String) Remarks.
4579* ` tag_set ` - (Optional, List, ** Deprecated** ) It has been deprecated from version 1.72.4. Use ` tags ` instead. Tags the private domain when it is created.
0 commit comments