Back to plugin list
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
2. Create source and destination configs
Plugin configurationOverview #
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 aredfs
(depth-first search),round-robin
,shuffle
andshuffle-queue
.For more information about this, see performance tuning.