Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix local execution mode #627

Merged
merged 4 commits into from
Oct 26, 2023
Merged

Fix local execution mode #627

merged 4 commits into from
Oct 26, 2023

Conversation

leg100
Copy link
Owner

@leg100 leg100 commented Oct 25, 2023

Fixes #626.

The TFC State Versions API has drastically changed. Starting with v1.6.0, terraform started using the updated API for workspaces using the remote/cloud backends, i.e. TFC and OTF, but the changes only impact local execution mode usage. Hence #626 reported seeing issues with v1.6.0 and OTF.

This PR incorporates the changes to the State Versions API. Essentially instead of:

  • Create State Version with metadata and the state itself

There is now also the ability to do this in two separate API calls:

  • Create State Version with only metadata
  • Upload state to that state version

And with that, a state version now has a status, which can be one of:

  • pending
  • finalized
  • discarded

The implemented behaviour follows as much as possible that documented for the API (see link above).

@leg100 leg100 merged commit aefb365 into master Oct 26, 2023
5 checks passed
leg100 added a commit that referenced this pull request Oct 27, 2023
🤖 I have created a release *beep* *boop*
---


## [0.1.15](v0.1.14...v0.1.15)
(2023-10-27)

### Features

* Implement TFE API for Team Tokens (#624) 1e4b173

### Bug Fixes

* fix local execution mode (#627) aefb365
* agent error reporting
([#628](#628))
([76e7dda](76e7dda))
* fixed defect with multiline tfvars not being escaped
([#631](#631))
([f35dffa](f35dffa))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Louis Garman <75728+leg100@users.noreply.github.com>
@leg100 leg100 deleted the fix-local-execution-mode branch December 16, 2023 10:22
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.

local, and agent execution mode results in unhandled panic when using terraform v1.6.X
1 participant