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

Commit 4aca1f6

Browse files
committed
fix: add terraform init and provider migration to setup-infrastructure
- Run terraform init --upgrade after patching to resolve providers - Migrate legacy -/google provider address in state to hashicorp/google
1 parent 8bd6f3b commit 4aca1f6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ci/infrastructure/scripts/setup-infrastructure.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ pushd "bbl-state/${BBL_STATE_DIR}"
5959
rm -f terraform/network_lb_override.tf
6060
rm -f terraform/network_lb.tf
6161

62+
# Re-init terraform after patching to resolve provider correctly
63+
pushd terraform
64+
terraform init --upgrade
65+
# Migrate legacy provider address in state (TF 0.12 → 1.x migration)
66+
terraform state replace-provider -auto-approve \
67+
"registry.terraform.io/-/google" "registry.terraform.io/hashicorp/google" 2>/dev/null || true
68+
popd
69+
6270
# Step 3: bbl up (terraform apply + bosh create-env)
6371
echo "=== Running bbl up ==="
6472
eval bbl --debug up \

0 commit comments

Comments
 (0)