Open danielcompton opened 4 years ago
Hey,
If you're looking for
With:
data "google_compute_lb_ip_ranges" "google" {
}
output lb_ssl {
value = data.google_compute_lb_ip_ranges.google.http_ssl_tcp_internal
}
Output:
Outputs:
test = [
"130.211.0.0/22",
"35.191.0.0/16",
]
Thanks! I did see that you can get the same result from using other data resources. This issue is more about creating a new resource that is semantically correct and represents the intent better. Especially in firewall rules, it's not always clear why something has been created.
Community Note
Description
When I'm setting up firewall rules, I need to allow requests from the Google global load balancers. Currently, health checker IPs are the same as the GFE IPs.
https://cloud.google.com/load-balancing/docs/https#source_ip_addresses
There are two issues with using the health check IP range here:
New or Affected Resource(s)
google_netblock_ip_ranges
Potential Terraform Configuration
References
I assume this should go on the
google_netblock_ip_ranges
data source rather than creating a new specific resource likegoogle_compute_lb_ip_ranges
.