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: handle run-events request from terraform cloud backend #534

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

leg100
Copy link
Owner

@leg100 leg100 commented Jul 25, 2023

terraform plan|apply as of v1.5 sends a request to /api/v2/runs/<run_id>/run-events if using the cloud backend. OTF did not handle this request and hence terraform would error with resource not found.

This PR stubs this endpoint, returning an empty response, which works around the issue.

(Run events would usually be warnings about various policy issues OTF doesn't implement anyway).

@leg100 leg100 merged commit b1998bd into master Jul 25, 2023
leg100 pushed a commit that referenced this pull request Jul 26, 2023
🤖 I have created a release *beep* *boop*
---


## [0.1.2](v0.1.1...v0.1.2)
(2023-07-26)


### Bug Fixes

* agent race error ([#537](#537))
([6b9e6b1](6b9e6b1))
* handle run-events request from terraform cloud backend
([#534](#534))
([b1998bd](b1998bd))
* terraform apply partial state updates
([#539](#539))
([d25e7e4](d25e7e4)),
closes [#527](#527)


### Miscellaneous

* removed unused config file
([84fe3b1](84fe3b1))

---
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>
@leg100 leg100 deleted the fix-run-events 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.

1 participant