Terraform · Arazzo Workflow
Terraform Upsert a Workspace Variable
Version 1.0.0
Set a workspace variable to a value whether or not it already exists.
View Spec
View on GitHub
Infrastructure As CodeCloud InfrastructureDevOpsOpen SourceHashiCorpArazzoWorkflows
Provider
Workflows
upsert-workspace-variable
Create or update a single workspace variable by key.
Lists the workspace variables, matches on the supplied key, updates the matched variable when one exists, otherwise creates it, and re-reads the list to confirm.
1
listVariables
ListWorkspaceVariables
List every variable on the workspace so the target key can be matched against what is already configured.
2
updateVariable
UpdateWorkspaceVariable
Patch the existing variable with the new value. Only the supplied attributes change; the variable's category and identity are preserved.
3
createVariable
CreateWorkspaceVariable
Create the variable on the workspace when no variable with the target key was found.
4
confirmVariables
ListWorkspaceVariables
Read the workspace variable list back to confirm the upsert landed and the workspace holds exactly one variable with the target key.