website logo
HomeTwitterLinkedInLogin ➡️
⌘K
Overview
Getting started
Connect an Account
AWS Account
Azure Subscription
GCP Project
Managing Accounts
Reverse Terraform
Asset Explorer/Reverse Terraform
Diff
Diff Email
Snapshot Diff
Ignored properties
Environment Explorer
Compliance
GraphQL API
IaC Catalog
Overview
Getting Started with Terraform Blueprints
Configuration
Producer Flow
Consumer Flow
CI/CD Configuration
Management
Security
Feedback/Contact
Docs powered by archbee 
9min

Bootstrap Test Space

Overview

Before any Terraform blueprint can be created, an API token to authorize interactions with the AutoCloud services and a test workspace module needs to be created to hold the Terraform source that will generate the blueprint.

Generate API Token

Navigate to the Terraform provider API token management page in the AutoCloud settings UI. To create a new token, click the New Token button at the top right of the page:

New Token


Click the eye icon next to the newly created token, and copy the value to a safe space:

To learn more about creating and using AutoCloud's Terraform Provider auth tokens, click here.

Show Token Value


Bootstrap Test Module

Create a test module following the Hashicorp standard module structure, with additional files to configure providers:

Shell
|


Pin the required versions in versions.tf:

Terraform
|


Configure the AutoCloud provider in providers.tf:

Terraform
|


Add AutoCloud data source

Add an AutoCloud data source to main.tf:

Terraform
|


Initialize & Plan

Initialize Terraform:

Shell
|


Run the first plan:

Shell
|




Updated 02 Mar 2023
Did this page help you?
Yes
No
UP NEXT
Connect Terraform Modules
Docs powered by archbee 
TABLE OF CONTENTS
Overview
Generate API Token
Bootstrap Test Module
Add AutoCloud data source
Initialize & Plan