Skip to content

State version upload#163

Merged
iam404 merged 5 commits into
hashicorp:next-1.0.0from
NimishaShrivastava-dev:state-version-upload
May 23, 2026
Merged

State version upload#163
iam404 merged 5 commits into
hashicorp:next-1.0.0from
NimishaShrivastava-dev:state-version-upload

Conversation

@NimishaShrivastava-dev

@NimishaShrivastava-dev NimishaShrivastava-dev commented May 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Added upload functionality support for State Versions following the Terraform Cloud State Versions API and Go SDK reference implementation.

Changes Made

  • Added state version upload workflow support
  • Implemented signed upload URL handling
  • Added raw state upload via PUT request
  • Added optional JSON state upload support
  • Added support for reading refreshed/finalized state version after upload
  • Added validations for upload flow
  • Added upload-related unit tests
  • Updated examples for upload functionality demonstration

Validated:

  • POST /api/v2/workspaces/:workspace_id/state-versions
  • Signed upload URL flow
  • Upload request handling
  • Upload/download state workflows
  • Include options and outputs handling

Testing

Tested using:

  • Real Terraform Cloud workspace
  • State version upload flow
  • State download flow
  • Outputs listing
  • Current state version reads

Example upload flow successfully:

  • created new state versions
  • uploaded raw state
  • finalized uploaded state version
  • incremented serial correctly
image image image

@NimishaShrivastava-dev NimishaShrivastava-dev requested a review from a team as a code owner May 21, 2026 09:59
@iam404 iam404 merged commit 173bec5 into hashicorp:next-1.0.0 May 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants