Skip to content

Instantly share code, notes, and snippets.

@viggin543
Created September 24, 2022 10:05
Show Gist options
  • Save viggin543/1fb1d84bfe488713cd93511ec1220f84 to your computer and use it in GitHub Desktop.
Save viggin543/1fb1d84bfe488713cd93511ec1220f84 to your computer and use it in GitHub Desktop.
resource "google_compute_backend_bucket" "foo_backend" {
name = "foo-backend-bucket"
description = "FOO frontend"
custom_response_headers = ["X-foo: bar"]
bucket_name = google_storage_bucket.foo.name
enable_cdn = true
edge_security_policy = google_compute_security_policy.waf-security-policy.id
cdn_policy {
serve_while_stale = 86400
client_ttl = 60
default_ttl = 60
request_coalescing = true
cache_mode = "CACHE_ALL_STATIC"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment