> For the complete documentation index, see [llms.txt](https://resmocom.gitbook.io/product/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resmocom.gitbook.io/product/integrations/terraform-cloud-integration.md).

# Terraform Cloud Integration

## Resmo + Terraform Cloud Integration Fundamentals

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

Resmo integrates with Terraform Cloud to ensure the security and compliance of your Terraform resources.

### What does Resmo offer to Terraform Cloud users?

* Collect your directory assets like users, organizations, and teams from your Terraform Cloud account.
* Query your Terraform Cloud users, organizations, teams, and much more.
* Set up security rules and run custom SQL queries to improve cyber asset visibility.
* Get notified of critical asset changes taking place in your Terraform account.

### How does the integration work?

Resmo uses API to do the initial polling and collect existing resources. Following the initial polling, it receives updates and changes in real-time through webhook and regular polling.

#### Available resources

{% embed url="<https://resources.resmo.com/terraformcloud>" %}

## Integration walkthrough

### How to install

1. Select Terraform on the Integrations page.
2. Click the Add Integration button at the bottom right corner of the opening modal.
3. Log in to your Terraform account on a new tab.
4. Go to your Terraform User Settings page.

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

5. Go to the Tokens page under your user settings page.

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

6. Generate and copy the API Token from your Terraform Cloud account.

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

7. Paste it to the API Token field on the integration setup page on Resmo.

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

8. Click Create.
9. All set! Now you can start running queries on your Terraform Cloud resources.

### How to uninstall

1. Go to Integrations -> Terraform.
2. Navigate to the Connected Integrations tab on the opening modal.
3. Click the Terraform integrations you want to remove.

{% hint style="info" %}
You can either **disable** the integration **temporarily** or **delete** it **permanently**. Disabled integrations can be enabled back, while a deletion cannot be undone.&#x20;
{% endhint %}

3\. Depending on your choice, click the Disable or Delete button from the top right of the integration's configuration page.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://resmocom.gitbook.io/product/integrations/terraform-cloud-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
