Skip to content

Instantly share code, notes, and snippets.

@viggin543
Created September 24, 2022 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viggin543/53534f3035e035fc0dcf22be9b1466cb to your computer and use it in GitHub Desktop.
Save viggin543/53534f3035e035fc0dcf22be9b1466cb to your computer and use it in GitHub Desktop.
resource "google_compute_target_https_proxy" "foo-proxy" {
name = "foo-https-proxy"
url_map = google_compute_url_map.foo.self_link
ssl_certificates = [google_compute_managed_ssl_certificate.foo-certificate.id]
}
resource "google_compute_global_forwarding_rule" "foo-https" {
provider = google-beta
name = "foo-https-rule"
load_balancing_scheme = "EXTERNAL"
target = google_compute_target_https_proxy.foo-proxy.self_link
ip_address = google_compute_global_address.foo_ip_address.address
port_range = "443"
depends_on = [google_compute_global_address.foo_ip_address]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment