Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNS] example for multiple routers in resource/opentelekomcloud_dns_zone_v2 #2268

Merged
merged 2 commits into from Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 27 additions & 1 deletion docs/resources/dns_zone_v2.md
Expand Up @@ -50,6 +50,32 @@ resource "opentelekomcloud_dns_zone_v2" "private_example_com" {
}
```

### Private Zone Configuration with multiple routers

```hcl
resource "opentelekomcloud_dns_zone_v2" "private_example_com" {
name = "private.example.com."
email = "private@example.com"
description = "An example for private zone"
ttl = 3000
type = "private"

router {
router_id = var.vpc_id_1
router_region = var.region
}

router {
router_id = var.vpc_id_2
router_region = var.region
}
tags = {
foo = "bar"
key = "value"
}
}
```

## Argument Reference

The following arguments are supported:
Expand All @@ -66,7 +92,7 @@ The following arguments are supported:

* `description` - (Optional) A description of the zone.

* `router` - (Optional) The Router(VPC) configuration for the private zone.
* `router` - (Optional) The Routers(VPCs) configuration for the private zone.
it is required when type is `private`.

* `tags` - (Optional) The key/value pairs to associate with the zone.
Expand Down
3 changes: 3 additions & 0 deletions releasenotes/notes/dns-routers-example-c86b8014fec667ac.yaml
@@ -0,0 +1,3 @@
other:
- |
**[DNS]** Update ``router`` doc and example in ``docs/resources/dns_zone_v2`` (`#2268 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/2268>`_)