Community
Questions Library
Docs
Blog
Events
Swag
Github
Slack
JupiterOne
Discussions
Release Notes
Contact Us
Terraform Cloud - AskJ1 Community
<main> <article class="userContent"> <h2 data-id="terraform-cloud-jupiterone-integration-benefits">Terraform Cloud + JupiterOne Integration Benefits</h2> <ul><li><p>Visualize Terraform Cloud organizations, users, workspaces, and workspace<br> resources in the JupiterOne graph.</p></li> <li><p>Map Terraform Cloud users to employees in your JupiterOne account.</p></li> <li>Monitor changes to Terraform Cloud users using JupiterOne alerts.</li> </ul><h2 data-id="how-it-works">How it Works</h2> <ul><li><p>JupiterOne periodically fetches organizations, users, workspaces, and<br> workspace resources from Terraform Cloud to update the graph.</p></li> <li><p>Write JupiterOne queries to review and monitor updates to the graph.</p></li> <li>Configure alerts to take action when JupiterOne graph changes.</li> </ul><h2 data-id="requirements">Requirements</h2> <ul><li><p>Terraform Cloud supports authentication through a Bearer Token. You must have<br> the appropriate API token.</p></li> <li><p>You must have permission in JupiterOne to install new integrations.</p></li> </ul><h2 data-id="support">Support</h2> <p>If you need help with this integration, please contact<br><a rel="nofollow" href="https://support.jupiterone.io">JupiterOne Support</a>.</p> <h2 data-id="integration-walkthrough">Integration Walkthrough</h2> <h3 data-id="in-terraform-cloud">In Terraform Cloud</h3> <ol><li>Create a Terraform Cloud account.</li> <li><a rel="nofollow" href="https://www.terraform.io/cloud-docs/api-docs#authentication">Generate a Terraform Cloud authentication token</a>.</li> <li>Enter the generated authentication token in the <code class="code codeInline" spellcheck="false" tabindex="0">API_KEY</code> field in .env.</li> <li>Enter the organization name you want the integration to ingest data from in<br> the <code class="code codeInline" spellcheck="false" tabindex="0">ORGANIZATION_NAME</code> field in .env.</li> </ol><h3 data-id="in-jupiterone">In JupiterOne</h3> <ol><li>From the top navigation of the J1 Search homepage, select <strong>Integrations</strong>.</li> <li>Scroll to the <strong>Terraform Cloud</strong> integration tile and click it.</li> <li>Click the <strong>Add Configuration</strong> button.</li> <li>Enter the <strong>Account Name</strong> by which you'd like to identify this Terraform<br> Cloud account in JupiterOne. Ingested entities will have this value stored in<br><code class="code codeInline" spellcheck="false" tabindex="0">tag.AccountName</code> when <strong>Tag with Account Name</strong> is checked.</li> <li>Enter a <strong>Description</strong> that will further assist your team when identifying<br> the integration instance.</li> <li>Select a <strong>Polling Interval</strong> that you feel is sufficient for your monitoring<br> needs. You may leave this as <code class="code codeInline" spellcheck="false" tabindex="0">DISABLED</code> and manually execute the integration.</li> <li>Enter the <strong>Terraform Cloud Authentication Token</strong> generated for use by<br> JupiterOne.</li> <li>Click <strong>Create Configuration</strong> once all values are provided.</li> </ol><h1 data-id="how-to-uninstall">How to Uninstall</h1> <ol><li>From the top navigation of the J1 Search homepage, select <strong>Integrations</strong>.</li> <li>Scroll to the <strong>Terraform Cloud</strong> integration tile and click it.</li> <li>Identify and click the <strong>integration to delete</strong>.</li> <li>Click the <strong>trash can</strong> icon.</li> <li>Click the <strong>Remove</strong> button to delete the integration.</li> </ol><h2 data-id="data-model">Data Model</h2> <h3 data-id="entities">Entities</h3> <p>The following entities are created:</p> <table><thead><tr><th>Resources</th> <th>Entity <code class="code codeInline" spellcheck="false" tabindex="0">_type</code></th> <th>Entity <code class="code codeInline" spellcheck="false" tabindex="0">_class</code></th> </tr></thead><tbody><tr><td>Account</td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_account</code></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">Account</code></td> </tr><tr><td>Entitlement Set</td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_entitlement_set</code></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">Entity</code></td> </tr><tr><td>Organization</td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_organization</code></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">Organization</code></td> </tr><tr><td>Resource</td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_workspace_resource</code></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">Resource</code></td> </tr><tr><td>Team</td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_team</code></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">Team</code></td> </tr><tr><td>User</td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_user</code></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">User</code></td> </tr><tr><td>Workspace</td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_workspace</code></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">Project</code></td> </tr></tbody></table><h3 data-id="relationships">Relationships</h3> <p>The following relationships are created:</p> <table><thead><tr><th>Source Entity <code class="code codeInline" spellcheck="false" tabindex="0">_type</code></th> <th>Relationship <code class="code codeInline" spellcheck="false" tabindex="0">_class</code></th> <th>Target Entity <code class="code codeInline" spellcheck="false" tabindex="0">_type</code></th> </tr></thead><tbody><tr><td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_account</code></td> <td><strong>HAS</strong></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_organization</code></td> </tr><tr><td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_organization</code></td> <td><strong>HAS</strong></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_entitlement_set</code></td> </tr><tr><td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_organization</code></td> <td><strong>HAS</strong></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_team</code></td> </tr><tr><td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_organization</code></td> <td><strong>HAS</strong></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_user</code></td> </tr><tr><td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_organization</code></td> <td><strong>HAS</strong></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_workspace</code></td> </tr><tr><td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_workspace</code></td> <td><strong>HAS</strong></td> <td><code class="code codeInline" spellcheck="false" tabindex="0">tfe_workspace_resource</code></td> </tr></tbody></table> </article> </main>