Migrate Terraform State to Bluebricks
How to migrate an existing Terraform deployment into Bluebricks when you want to adopt Bluebricks without recreating infrastructure
Before you begin
Step-by-step
4
Upload the state to Bluebricks
curl -X POST "https://api.bluebricks.co/api/v1/envs/<ENVIRONMENT_SLUG>/states" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "packageVersion=<PACKAGE_VERSION>" \
-F 'states=[{"package_id": "<PACKAGE_ID>", "state_file": "terraform.tfstate"}]' \
-F "terraform.tfstate=@./terraform.tfstate;type=application/json"Placeholder
Value
5
Troubleshooting
Related
Last updated