Terraform · Arazzo Workflow
Terraform Provision a Workspace with Initial Variables
Version 1.0.0
Verify an organization, create a workspace, seed its variables, and read it back.
View Spec
View on GitHub
Infrastructure As CodeCloud InfrastructureDevOpsOpen SourceHashiCorpArazzoWorkflows
Provider
Workflows
provision-workspace
Create a new HCP Terraform workspace and seed it with variables.
Confirms the organization exists, creates a workspace with the supplied execution settings, attaches a Terraform variable and an environment variable, and reads the workspace back to verify the final state.
1
verifyOrganization
GetOrganization
Read the organization to confirm the bearer token can reach it and that the plan is active before creating any billable resources inside it.
2
createWorkspace
CreateWorkspace
Create the workspace inside the verified organization using the supplied name, execution mode, and Terraform version.
3
addTerraformVariable
CreateWorkspaceVariable
Attach the initial Terraform variable to the new workspace so the first run has the input it needs.
4
addEnvironmentVariable
CreateWorkspaceVariable
Attach the initial environment variable, typically a provider credential or region hint, marking it sensitive when requested.
5
confirmWorkspace
GetWorkspace
Read the workspace back to confirm it exists, is unlocked, and settled with the execution mode that was requested.