website logo
HomeTwitterLinkedInLogin ➡️
⌘K
Overview
Getting started
The Intelligent IaC Difference
Connect Cloud Accounts
AWS Account
Azure Subscription
GCP Project
Managing Cloud Accounts
What are Accounts
Credentials
Scanning Options
Changelog
Compliance
CI/CD
IaC Explorer
IaC Explorer Overview
Codifier
Generating Terraform
Terraform Remote State File Integration
IaC Catalog
Overview
Getting Started
Configuration
Producer Flow
Consumer Flow
Reference
GraphQL API
Management
Security
Feedback/Contact
Docs powered by
Archbee
IaC Explorer

Generating Terraform

6min

Generating Terraform code, state, and modules from existing cloud resources

AutoCloud has the ability to generate Terraform code, state, and modules from your existing cloud resources on AWS, Azure, and GCP. You can use this functionality to Terraform entire cloud accounts on demand in order to get to full IaC coverage.

AutoCloud provides a view in our "IaC Explorer" page where you can see all of your cloud assets as well as various information about them including:

  • The resource name and type
  • The IaC status - which is either unmanaged, codified, or drifted
  • Security issues (CIS, NIST, PCI)
  • Tags
  • Resource metadata
Document image


If you click on the IaC status of a drifted resource, you can view information about what has drifted from its original state:



Document image

Document image


Clicking on any red shield icons under the "Issues" column will show you what issues AutoCloud has identified with your cloud resources so you can fix them before you generate Terraform code in order to ensure compliance:

Document image

Document image

Document image


In order to generate Terraform code for existing cloud resources, simply select the resources you wish to codify and click the "Generate Terraform" button.



Document image


Terraform will be automatically generated for the resources, and you can customize how Terraform is generated (i.e. the raw code with or without data sources, a TF module, state...). From this screen, you can either download the code and copy it over to the right places, or create a PR against your VCS (GitHub is currently supported) in order to integrate with your existing GitOps workflows.

Document image

<!-- The script tag should live in the head of your page if at all possible -->
<script type="text/javascript" async src="https://play.vidyard.com/embed/v4.js"></script>

Below is quickwalkthrough of this feature in action:
<!-- Put this wherever you would like your player to appear -->
<img
  style="width: 100%; margin: auto; display: block;"
  class="vidyard-player-embed"
  src="https://play.vidyard.com/84ebuptQn7JjTu7ZcDT6px.jpg"
  data-uuid="84ebuptQn7JjTu7ZcDT6px"
  data-v="4"
  data-type="inline"
/>




Updated 26 Jul 2023
Did this page help you?
PREVIOUS
Codifier
NEXT
Terraform Remote State File Integration
Docs powered by
Archbee
TABLE OF CONTENTS
Generating Terraform code, state, and modules from existing cloud resources
Docs powered by
Archbee