-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feat: add support for remote state access configuration #634
Conversation
client/remote_state_access.go
Outdated
|
||
func (client *ApiClient) RemoteStateAccessConfigurationCreate(environmentId string, payload RemoteStateAccessConfigurationCreate) (*RemoteStateAccessConfiguration, error) { | ||
var result RemoteStateAccessConfiguration | ||
if err := client.http.Post("/remote-backend/states/"+environmentId+"/access-control", payload, &result); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh it's also Put
not post 🙈
@@ -8,7 +8,7 @@ env: | |||
ENV0_API_ENDPOINT: ${{ secrets.ENV0_API_ENDPOINT }} | |||
ENV0_API_KEY: ${{ secrets.TF_PROVIDER_INTEGRATION_TEST_API_KEY }} # API Key for organization 'TF-provider-integration-tests' @ dev | |||
ENV0_API_SECRET: ${{ secrets.TF_PROVIDER_INTEGRATION_TEST_API_SECRET }} | |||
GO_VERSION: 1.18 | |||
GO_VERSION: 1.19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to golang 1.19.
updated to a newer staticcheck.
This was done to avoid deprecation warnings. (Unrelated to the PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
After discussion on missing id on response gonna move to use the environmentId instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Issue & Steps to Reproduce / Feature Request
resolves #628
Solution