google_compute_lb_ip_ranges
Use this data source to access IP ranges in your firewall rules.
Example Usage
data "google_compute_lb_ip_ranges" "ranges" {} resource "google_compute_firewall" "lb" { name = "lb-firewall" network = "${google_compute_network.main.name}" allow { protocol = "tcp" ports = ["80"] } source_ranges = ["${data.google_compute_lb_ip_ranges.ranges.network}"] target_tags = [ "InstanceBehindLoadBalancer" ] }
Argument Reference
There are no arguments available for this data source.
Attributes Reference
In addition to the arguments listed above, the following attributes are exported:
-
network
- The IP ranges used for health checks when Network load balancing is used -
http_ssl_tcp_internal
- The IP ranges used for health checks when HTTP(S), SSL proxy, TCP proxy, and Internal load balancing is used
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/google/d/datasource_compute_lb_ip_ranges.html