Skip to content

Commit b497c0d

Browse files
committed
set max instances to 1
1 parent 1eb27ee commit b497c0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

terraform/modules/service/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ resource "google_cloud_run_v2_service" "cloudrun_service" {
3636
ingress = "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
3737
template {
3838
service_account = var.cloudrun_service_account_email
39+
scaling {
40+
max_instance_count = 1
41+
}
3942
containers {
4043
image = var.image
4144
env {

0 commit comments

Comments
 (0)