Migrate Terraform state to Bluebricks
Migrate an existing Terraform deployment into Bluebricks without recreating infrastructure
Overview
Prerequisites
Migration guide
4
Upload the state to Bluebricks
curl -X POST "https://api.bluebricks.co/api/v1/envs/<ENVIRONMENT_SLUG>/states" \
-H "Authorization: Bearer <YOUR_TOKEN>" \
-F "packageVersion=<PACKAGE_VERSION>" \
-F 'states=[{"package_id": "<PACKAGE_ID>", "state_file": "terraform.tfstate"}]' \
-F "terraform.tfstate=@./terraform.tfstate;type=application/json"5
Troubleshooting
Last updated
Was this helpful?

