-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.tf
38 lines (31 loc) · 904 Bytes
/
service.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
data "fastly_package_hash" "demo" {
filename = "pkg/fastly-compute-edge-demo.tar.gz"
}
resource "fastly_service_compute" "fastly_compute_edge_demo" {
name = "fastly-compute-edge-demo"
comment = "Managed by chenrui333/fastly-compute-edge-demo repo"
domain {
name = "fastly-compute-edge-demo.edgecompute.app"
}
backend {
address = "127.0.0.1"
name = "originless"
port = 80
}
backend {
name = "httpbin"
address = "httpbin.org"
port = 443
ssl_cert_hostname = "httpbin.org"
ssl_check_cert = true
ssl_sni_hostname = "httpbin.org"
use_ssl = true
min_tls_version = "1.2"
}
package {
# `fastly-compute-edge-demo.tar.gz` is built by `fastly compute build`
filename = "pkg/fastly-compute-edge-demo.tar.gz"
source_code_hash = data.fastly_package_hash.demo.hash
}
force_destroy = true
}