-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support for routingPolicy in DNS Routing policies #11038
Support for routingPolicy in DNS Routing policies #11038
Comments
Note: Our implementation of this resource is not based on the |
This field is only available via the |
Hi! |
I'd suggest a more Terraform'y approach:
|
Would this issue also cover the geo-based option for DNS records? |
I'm working on this issue at GoogleCloudPlatform/magic-modules#5909. sample in current implementation: resource "google_dns_record_set" "sample" {
...
// rrdatas = ["127.0.0.1", "127.0.0.2"]
routing_policy {
// geo {
// region = "asia-northeast1"
// rrdatas = ["127.0.0.1"]
// }
// geo {
// region = "asia-east1"
// rrdatas = ["127.0.0.2"]
// }
wrr {
weight = 90.0
rrdatas = ["127.0.0.1"]
}
wrr {
weight = 10.0
rrdatas = ["127.0.0.2"]
}
}
} |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
How can I add DNS routing policies to
google_dns_record_set
for WRR routing policy which can be seen here https://cloud.google.com/dns/docs/zones/manage-routing-policies , Terraform resource only shows options forrrdatas
here https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/dns_record_set#rrdatas.for eg I want add
routingPolicy
instead ofrrdatas
so the options like weight can be added, snap of the API call looks like thisNew or Affected Resource(s)
Potential Terraform Configuration
Which would look something like this
References
Google Docs --> https://cloud.google.com/dns/docs/zones/manage-routing-policies
Terraform Resource --> https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/dns_record_set#adding-an-a-record
The text was updated successfully, but these errors were encountered: