Commit 8dd901a
fix: add create_before_destroy to trust bundle GCS object
Without a lifecycle block, a content change causes Terraform to
destroy the old object before creating the new one. If the apply is
interrupted between destroy and create, the bucket is left empty
with no trust bundle — breaking CA trust for runner and environment
VMs until the next successful apply.
Adding create_before_destroy ensures the new object is written
before the old one is removed, eliminating the gap.
Co-authored-by: Ona <no-reply@ona.com>1 parent 59066c3 commit 8dd901a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
| |||
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
287 | 293 | | |
288 | 294 | | |
289 | 295 | | |
| |||
0 commit comments