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 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
Currently there isn't a way to retrieve a pre-existing google_compute_regional_ssl_policy
object via terraform. There is a method for retrieval for global policies via google_compute_ssl_policy
New or Affected Resource(s)
data.google_compute_region_ssl_policy
Potential Terraform Configuration
data "google_compute_region_ssl_policy" "region" {
name = "my-ssl-policy"
}
resource "google_compute_region_target_https_proxy" "region" {
name = "${var.friendly_name_prefix}-${var.product}-${lower(local.lb_type)}-regional-lb-proxy"
ssl_certificates = var.lb_ssl_certificate_self_link
url_map = var.lb_url_map_self_link
description = "The target HTTPS proxy of the ${lower(local.lb_type)} load balancer for ${var.product}."
ssl_policy = data.google_compute_region_ssl_policy.region.self_link
}
References
None that mentioned the resource directly that I could find.
b/323501180
Activity