File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -49,5 +49,5 @@ resource "time_sleep" "cloud_run_v2_service" {
49
49
google_cloud_run_v2_service . default
50
50
]
51
51
52
- create_duration = " 60s "
52
+ create_duration = " 45s "
53
53
}
Original file line number Diff line number Diff line change @@ -146,10 +146,10 @@ resource "google_cloud_run_v2_service" "default" {
146
146
value = local. nextauth_url
147
147
}
148
148
startup_probe {
149
- initial_delay_seconds = 0
150
- timeout_seconds = 1
151
- period_seconds = 3
152
- failure_threshold = 1
149
+ initial_delay_seconds = 45
150
+ timeout_seconds = 65
151
+ period_seconds = 5
152
+ failure_threshold = 5
153
153
tcp_socket {
154
154
port = 8080
155
155
}
@@ -183,6 +183,9 @@ resource "google_cloud_run_service_iam_policy" "noauth" {
183
183
service = google_cloud_run_v2_service. default . name
184
184
185
185
policy_data = data. google_iam_policy . noauth . policy_data
186
+ depends_on = [
187
+ time_sleep . cloud_run_v2_service
188
+ ]
186
189
}
187
190
188
191
resource "google_compute_region_network_endpoint_group" "default" {
@@ -194,7 +197,8 @@ resource "google_compute_region_network_endpoint_group" "default" {
194
197
service = google_cloud_run_v2_service. default . name
195
198
}
196
199
depends_on = [
197
- time_sleep . project_services
200
+ time_sleep . project_services ,
201
+ time_sleep . cloud_run_v2_service
198
202
]
199
203
}
200
204
@@ -220,6 +224,9 @@ resource "google_compute_url_map" "default" {
220
224
service = google_compute_backend_bucket. default . id
221
225
}
222
226
}
227
+ depends_on = [
228
+ time_sleep . cloud_run_v2_service
229
+ ]
223
230
}
224
231
225
232
resource "google_compute_backend_service" "default" {
You can’t perform that action at this time.
0 commit comments