You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
The recently added google_certificate_manager_certificate_map resource lacks a self_link attribute. This resource is usually used in google_compute_target_https_proxy.certificate_map which expects a URI as in the following error message:
│ Error: Error updating TargetHttpsProxy "projects/PROJECT/global/targetHttpsProxies/PROXY": googleapi: Error 400: Invalid value for field 'certificateMap': 'CERTMAP'. 'CERTMAP' is not a valid reference.It should have the format //certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}., invalid
but the google_certificate_manager_certificate_map resource does not provide any convenient attributes in the required format.
The best workaround here is to use string interpolation to combine the domain with the id field of the resource. (A self_link field would contain the same as id.) We should document this better.
Community Note
Description
The recently added
google_certificate_manager_certificate_map
resource lacks aself_link
attribute. This resource is usually used ingoogle_compute_target_https_proxy.certificate_map
which expects a URI as in the following error message:but the
google_certificate_manager_certificate_map
resource does not provide any convenient attributes in the required format.Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: