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 Catalog
Configuration

AutoCloud Terraform Provider Authentication

2min

In order to use the AutoCloud Terraform Provider to create new blueprints in your IaC catalog, you must provide the Terraform Provider with an authentication token. You can create a new authentication token in the AutoCloud app at Settings > Terraform Provider

Terraform Provider Auth Token page
Terraform Provider Auth Token page


Once you have created your Terraform Provider Authentication Token, it can be used to authenticate with the AutoCloud API. Below is an example code block on how to configure the AutoCloud Terraform Provider with your authentication token.

Shell
|
provider "autocloud" {
    ###
    # AutoCloud API Endpoint URL
    # 
    # Sets the endpoint that Terraform will talk to in order to determine state.
    # For self hosted or testing environments, set either via environment variable:
    # 
    # export AUTOCLOUD_API=https://api.autocloud.io/api/v.0.0.1
    #
    # or via explicit configuration:

    endpoint = "https://api.autocloud.io/api/v.0.0.1"



    ###
    # AutoCloud API Token
    #
    # Authorizes user to interact with AutoCloud API. These must be generated here:
    #
    # https://app.autocloud.io/settings/integrations/terraform-provider
    #
    # Value must be set eithe via environment variable:
    #
    # export AUTOCLOUD_TOKEN=
    # 
    # or via explicit configuraiton:

    token = ""
}


The authentication token is a secret value, we suggest you do NOT store this token within source control and use an ENV variable to pass its value to the provider. In order to set the authentication token from the ENV, place the token value within the ENV variable AUTOCLOUD_TOKEN and omit that property from the provider configuration block like so:

Terraform
|
provider "autocloud" {
    ###
    # AutoCloud API Endpoint URL
    # 
    # Sets the endpoint that Terraform will talk to in order to determine state.
    # For self hosted or testing environments, set either via environment variable:
    # 
    # export AUTOCLOUD_API=https://api.autocloud.io/api/v.0.0.1
    #
    # or via explicit configuration:

    endpoint = "https://api.autocloud.io/api/v.0.0.1"



    ###
    # AutoCloud API Token
    #
    # Authorizes user to interact with AutoCloud API. These must be generated here:
    #
    # https://app.autocloud.io/settings/integrations/terraform-provider
    #
    # Value must be set eithe via environment variable:
    #
    # export AUTOCLOUD_TOKEN=
    # 
    # or via explicit configuraiton:
    
    # token = ""
}




Updated 21 Jul 2023
Did this page help you?
PREVIOUS
Configuration
NEXT
Integration with Source Control (Github)
Docs powered by
Archbee
Docs powered by
Archbee