Skip to content

State version upload#162

Closed
NimishaShrivastava-dev wants to merge 55 commits into
hashicorp:mainfrom
NimishaShrivastava-dev:state-version-upload
Closed

State version upload#162
NimishaShrivastava-dev wants to merge 55 commits into
hashicorp:mainfrom
NimishaShrivastava-dev:state-version-upload

Conversation

@NimishaShrivastava-dev

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

API / SDK Parity

Verified implementation against:

  • Terraform Cloud State Versions API documentation
  • Go SDK state_version.go implementation

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

isivaselvan and others added 30 commits March 16, 2026 17:51
- Unused TYPE is removed.
- CSV header order fixed as per API response.
isivaselvan and others added 25 commits May 6, 2026 10:13
…org-tokens-api-specs-v2

Add organization token support with models, resources, examples, and …
Standardize notification configuration models and fix related bugs from release v0.1.5
Add user API support and current-user endpoints
…ider-platform

Feature/registry provider platform
🚀 Add Explorer API (v2) support to `pytfe`
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.

4 participants