Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

Commit f16efa7

Browse files
committed
ci: run terraform apply directly before bbl up
BBL's internal terraform execution fails with the patched template due to provider schema loading issues. Running terraform apply directly after init+provider migration ensures the infrastructure is created correctly, and bbl up then only needs to handle bosh create-env and cloud-config.
1 parent 4aca1f6 commit f16efa7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

ci/infrastructure/scripts/setup-infrastructure.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,14 @@ pushd "bbl-state/${BBL_STATE_DIR}"
6767
"registry.terraform.io/-/google" "registry.terraform.io/hashicorp/google" 2>/dev/null || true
6868
popd
6969

70-
# Step 3: bbl up (terraform apply + bosh create-env)
71-
echo "=== Running bbl up ==="
70+
# Step 3: Run terraform apply directly (not through bbl up, which re-plans)
71+
echo "=== Running terraform apply ==="
72+
pushd terraform
73+
terraform apply -auto-approve
74+
popd
75+
76+
# Step 4: bbl up for bosh create-env and cloud-config (skip terraform with SKIP_TERRAFORM)
77+
echo "=== Running bbl up (bosh only) ==="
7278
eval bbl --debug up \
7379
${name_flag} \
7480
${lb_flags} "2>&1" ${drain} "${ROOT_DIR}/bbl_up.log"

0 commit comments

Comments
 (0)