Skip to content

Commit

Permalink
feat/private_dns
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenEarth committed Sep 20, 2023
1 parent 77962e1 commit b84e3f5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
23 changes: 20 additions & 3 deletions tencentcloud/resource_tc_private_dns_zone_vpc_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,28 @@ Example Usage
Append VPC associated with private dns zone
```hcl
resource "tencentcloud_private_dns_zone" "example" {
domain = "domain.com"
remark = "remark."
dns_forward_status = "DISABLED"
cname_speedup_status = "ENABLED"
tags = {
createdBy : "terraform"
}
}
resource "tencentcloud_vpc" "vpc" {
name = "vpc-mysql"
cidr_block = "10.0.0.0/16"
}
resource "tencentcloud_private_dns_zone_vpc_attachment" "example" {
zone_id = "zone-6t11lof0"
zone_id = tencentcloud_private_dns_zone.example.id
vpc_set {
uniq_vpc_id = "vpc-jdx11z0t"
uniq_vpc_id = tencentcloud_vpc.vpc.id
region = "ap-guangzhou"
}
}
Expand All @@ -22,7 +39,7 @@ Add VPC information for associated accounts in the private dns zone
```hcl
resource "tencentcloud_private_dns_zone_vpc_attachment" "example" {
zone_id = "zone-6t11lof0"
zone_id = tencentcloud_private_dns_zone.example.id
account_vpc_set {
uniq_vpc_id = "vpc-82znjzn3"
Expand Down
23 changes: 20 additions & 3 deletions website/docs/r/private_dns_zone_vpc_attachment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,28 @@ Provides a resource to create a PrivateDns zone_vpc_attachment
### Append VPC associated with private dns zone

```hcl
resource "tencentcloud_private_dns_zone" "example" {
domain = "domain.com"
remark = "remark."
dns_forward_status = "DISABLED"
cname_speedup_status = "ENABLED"
tags = {
createdBy : "terraform"
}
}
resource "tencentcloud_vpc" "vpc" {
name = "vpc-mysql"
cidr_block = "10.0.0.0/16"
}
resource "tencentcloud_private_dns_zone_vpc_attachment" "example" {
zone_id = "zone-6t11lof0"
zone_id = tencentcloud_private_dns_zone.example.id
vpc_set {
uniq_vpc_id = "vpc-jdx11z0t"
uniq_vpc_id = tencentcloud_vpc.vpc.id
region = "ap-guangzhou"
}
}
Expand All @@ -32,7 +49,7 @@ resource "tencentcloud_private_dns_zone_vpc_attachment" "example" {

```hcl
resource "tencentcloud_private_dns_zone_vpc_attachment" "example" {
zone_id = "zone-6t11lof0"
zone_id = tencentcloud_private_dns_zone.example.id
account_vpc_set {
uniq_vpc_id = "vpc-82znjzn3"
Expand Down

0 comments on commit b84e3f5

Please sign in to comment.