Report an issue
Back to plugin list
terraform-cloud
Official
Premium

Terraform Cloud

This plugin is in preview.

Terraform Cloud source plugin pulls information out of Terraform Cloud and loads it into any supported CloudQuery destination

Publisher

cloudquery

Latest version

v1.0.2

Type

Source

Platforms
Date Published

Price

Free while in preview

Set up process #


brew install cloudquery/tap/cloudquery

1. Download CLI and login

See installation options

2. Create source and destination configs

Plugin configuration

cloudquery sync terraform-cloud.yml postgresql.yml

3. Run the sync

CloudQuery sync

Overview #

Terraform Cloud Plugin

The CloudQuery Terraform Cloud plugin extracts information from Terraform Cloud and loads it into any supported CloudQuery destination. It uses the Terraform Cloud API to fetch data.

Authentication #

To sync resources from your Terraform Cloud setup, you need to provide an API token. You can generate this token in the Terraform Cloud user settings.

Example Configuration #

kind: source
spec:
    name: "terraform-cloud"
    path: "cloudquery/terraform-cloud"
    registry: cloudquery
    version: "v1.0.2"
    destinations: ["postgresql"]
    tables: ["*"]
    spec:
        token: ${TERRAFORM_CLOUD_TOKEN}

Configuration Reference #

This is the spec used by the Terraform Cloud source plugin:
  • token (string) (required)
    API token used to access the Terraform Enterprise API. (Recommendation: Use an environment variable instead of hardcoding the token in the config)
  • address (string) (optional, default: "https://app.terraform.io")
    The address of the Terraform Enterprise API.
  • base_path (string) (optional, default: "/api/v2/")
    The base path on which the API is served.
  • registry_base_path (string) (optional, default: "/api/registry/")
    The base path for the Registry API.
  • concurrency (integer) (optional, default: 1500)
    The best effort maximum number of Go routines to use. Lower this number to reduce memory usage.