Getting a Job's State File

Download the Terraform state file (.json) from a completed apply, apply rollback, or import job in Resource Manager.

Note

To prevent errors caused by unavailable files, wait a second after the job finishes to download the job information. An error appears if the job information doesn't exist yet. For example, a 409 error appears if you attempt to download the Terraform configuration immediately after running a job. In this case, the Terraform configuration is still being copied to a location using a background process. The Terraform configuration is available about a second after the job finishes.

Example State File

The following example state file is from a successful apply job for the Document template.

Was this article helpful?