# Terraform State

Each Terrakube workspace has its own separate state data, used for jobs within that workspace. In Terrakube you can see the Terraform state in the standard [JSON format](#json-state) provided by the Terraform cli or you can see a [Visual State](#visual-state), this is a diagram created by Terrakube to represent the resources inside the JSON state.

### JSON State

Go to the workspace and click the **States** tab and then click in the specific state you want to see.

<figure><img src="/files/iB9INQo8ThV3rkJ04IJ2" alt=""><figcaption></figcaption></figure>

You will see the state in JSON format

<figure><img src="/files/lDHsFXWcRMiA6Rvoe5ce" alt=""><figcaption></figcaption></figure>

You can click the **Download** button to get a copy of the JSON state file&#x20;

<figure><img src="/files/QIYmOq05B1XwyF6RF7n3" alt=""><figcaption></figcaption></figure>

### Visual State

Inside the **states** page, click the **diagram** tab and you will see the visual state for your terraform state.

<figure><img src="/files/dr5NBijay5VkVj5pgz2v" alt=""><figcaption></figcaption></figure>

The visual state will also show some information if you click each element like the following:

<figure><img src="/files/H9JIl6mJKtbLuKmkS09D" alt=""><figcaption></figcaption></figure>

### Resources

All the resources can be shown in the overview page inside the workspace:

<figure><img src="/files/TFFahIKOr4MVxhLmmY1E" alt=""><figcaption></figcaption></figure>

If you click the resources you can check the information about each resouce like the folloing

<figure><img src="/files/p4IpZyudhPDMxsGshUPd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.terrakube.io/2.19.0/user-guide/workspaces/terraform-state.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
