Penv Cloud
Start free
Docs
Reference

HCP Terraform workspace variables

Export secrets into one HCP Terraform workspace's variables.

Export secrets into one HCP Terraform workspace's variables.

Connection

WhatThis provider
VendorHashiCorp Terraform
Keyhcp-terraform-vars
Availabilityavailable. You can connect it today.
Credential we holdhcp-terraform-token
Values read backno
Activationon-next-deploy

Directions

DirectionWhat it does
exportWe write names and values from your environment into the store.

HashiCorp Terraform returns no value once it holds one, so we can write here and cannot read back.

Activation

on-next-deploy. A new value waits there and arrives with your next deploy.

Conflict policies

DirectionPolicies you can pick
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

Connect

Paste a credential from the vendor. We seal it and never show it again.

FieldLabelKindRequiredWhat it is
tokenAPI tokensecret; we mask it here and seal ityesA team token with Read and write variables. Not an organization token: an organization has only one valid token at a time, so another tool minting one silently kills this sync. Every token expires.

Mapping fields

You answer these once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
workspaceIdWorkspace IDtextyesnoFrom the workspace's General Settings page. One workspace per sync.
categoryVariable kindchoiceyesyesEnvironment variables reach the run's shell. A Terraform input your configuration does not declare is stored and then ignored. One of Environment variable, Terraform input variable. Starts at env.

Required permissions

We probe for these when we verify the connection.

PermissionDirectionsBlockingWithout it
account:readevery directionyesWe cannot confirm this token is live, or which account it acts as.
workspace:read-variablesexportyesExport cannot enumerate existing variables, so it cannot update or prune safely.
workspace:write-variablesexportyesExport cannot write anything.