-
Notifications
You must be signed in to change notification settings - Fork 1
/
frontend-cloud-run.tf
48 lines (41 loc) · 974 Bytes
/
frontend-cloud-run.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
39
40
41
42
43
44
45
46
resource "google_cloud_run_service" "frontend" {
name = "frontend-${random_integer.rand.result}"
location = var.region
template {
spec {
containers {
# we need some image to bootstrap the service
image = "gcr.io/google-samples/hello-app:1.0"
env {
name = "FOO"
value = "BAR"
}
ports {
container_port = 8080
}
}
container_concurrency = 2
timeout_seconds = 3
service_account_name = data.google_service_account.frontend_runtime_sa.email
}
}
metadata {
labels = {
"application" = "bodleian"
"stage" = "dev"
}
}
lifecycle {
ignore_changes = [
metadata.0.annotations,
template.0.spec.0.containers.0.image,
template.0.spec.0.container_concurrency,
template.0.spec.0.timeout_seconds,
traffic
]
}
traffic {
percent = 100
latest_revision = true
}
}