-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Community Note
- Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request.
- Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
- If an issue is assigned to a user, that user is claiming responsibility for the issue.
- Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Terraform Version & Provider Version(s)
Terraform v1.13.3
on darwin_arm64
- provider registry.terraform.io/hashicorp/google v7.12.0
Affected Resource(s)
google_certificate_manager_dns_authorization
Terraform Configuration
data "google_certificate_manager_dns_authorization" "some_domain" {
project = "some-project"
name = "dns-auth-some-domain"
domain = "some-domain.com"
// location = "global"
}Debug Output
No response
Expected Behavior
Docs state:
location - (Optional) The Certificate Manager location. If not specified, "global" is used.
So this should work without location
Actual Behavior
Fails with empty URL component:
β Error: Error when reading or editing CertificateManagerDnsAuthorization "projects/some-project/locations//dnsAuthorizations/dns-auth-some-domain": googleapi: Error 400: Malformed name: 'projects/some-project/locations//dnsAuthorizations/dns-auth-some-domain'
β Details:
β [
β {
β "@type": "type.googleapis.com/google.rpc.BadRequest",
β "fieldViolations": [
β {
β "description": "URL path has empty component",
β "field": "projects/some-project/locations//dnsAuthorizations/dns-auth-some-domain"
β }
β ]
β }
β ]
Steps to reproduce
terraform apply
Important Factoids
Works after adding location = "global". Looks like just the handling of default value is broken.
References
No response