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.1.0

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.1.0"
    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)
    A best effort maximum number of Go routines to use. Lower this number to reduce memory usage.
  • scheduler (string) (optional, default: dfs)
    The scheduler to use when determining the priority of resources to sync. Supported values are dfs (depth-first search), round-robin, shuffle and shuffle-queue.
    For more information about this, see performance tuning.


Join our mailing list

Subscribe to our newsletter to make sure you don't miss any updates.

Legal

© 2024 CloudQuery, Inc. All rights reserved.

We use tracking cookies to understand how you use the product and help us improve it. Please accept cookies to help us improve. You can always opt out later via the link in the footer.