Created
September 24, 2022 13:13
-
-
Save viggin543/fee6932524aee6bbf2adf2e5e3760eb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "google_compute_url_map" "foo-http" { | |
name = "loomi-foo-http" | |
description = "foo http redirect" | |
default_url_redirect { | |
strip_query = false | |
redirect_response_code = "MOVED_PERMANENTLY_DEFAULT" | |
https_redirect = true | |
} | |
} | |
resource "google_compute_target_http_proxy" "foo-http-proxy" { | |
name = "foo-https-proxy" | |
url_map = google_compute_url_map.foo-http.self_link | |
} | |
resource "google_compute_global_forwarding_rule" "foo-http" { | |
provider = google-beta | |
name = "foo-http-rule" | |
load_balancing_scheme = "EXTERNAL" | |
target = google_compute_target_http_proxy.foo-http-proxy.self_link | |
ip_address = google_compute_global_address.foo_ip_address.address | |
port_range = "80" | |
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