我想要的:
我希望有一个static.example.com
DNS记录,它链接到包含我的静态映像的GCS中的一个桶。
当我通过Cloudflare管理我的DNS时,我认为我需要使用GCP可以赋予我anycast-IP的事实,将该IP链接到GCP负载均衡器,而GCP负载均衡器将被链接到bucket。
我现在拥有的是:
我缺少的是:
发布于 2019-05-20 15:11:01
规则上的terraform文档有一个很好的例子。
例如:
resource "google_compute_global_forwarding_rule" "default" {
name = "default-rule"
target = "${google_compute_target_http_proxy.default.self_link}"
port_range = 80 // or other e.g. for ssl
ip_address = "${google_compute_global_address.my_ip.address}"
}
resource "google_compute_target_http_proxy" "default" { // or https proxy
name = "default-proxy"
description = "an HTTP proxy"
url_map = "${google_compute_url_map.urlmap.self_link}"
}
希望这能帮上忙!
https://stackoverflow.com/questions/56009157
复制相似问题