Terraform · Arazzo Workflow
Terraform Push a New State Version Under Lock
Version 1.0.0
Lock a workspace, read its current state serial, upload a new state version, and unlock.
View Spec
View on GitHub
Infrastructure as CodeCloud InfrastructureDevOpsOpen-SourceHashiCorpArazzoWorkflows
Provider
Workflows
migrate-state-version
Safely upload a new Terraform state version to a locked workspace.
Locks the workspace, inspects the current state serial, pushes a new base64-encoded state version with its MD5 checksum, confirms the upload, and releases the lock.
1
lockWorkspace
Lock the workspace before touching state. HCP Terraform rejects state uploads to an unlocked workspace, and the lock prevents a concurrent run from racing the migration.
2
listStateVersions
List the workspace's existing state versions, newest first, to learn the current serial so the replacement serial can be checked against it.
3
readCurrentState
Read the current state version for its hosted download URL, giving the caller a retrievable backup of the state about to be superseded.
4
pushStateVersion
Upload the new state version to the locked workspace, supplying the serial, the MD5 checksum, and the base64-encoded state payload.
5
verifyStateVersion
Read the newly created state version back to confirm it was accepted and recorded with the expected serial before releasing the lock.
6
unlockWorkspace
Release the workspace lock now that the new state version is confirmed, so runs can resume against the migrated state.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.