-
Notifications
You must be signed in to change notification settings - Fork 384
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
Cannot update all datadog_integration_gcp fields #269
Comments
Still current with go-datadog-api v2.25.0: https://github.com/zorkian/go-datadog-api/blob/v2.25.0/integrations.go#L325-L328 |
Fixed in go-datadog-api master by zorkian/go-datadog-api#285, waiting for next release: |
pdecat
changed the title
Most datadog_integration_gcp fields should be ForceNew
Allow updating all datadog_integration_gcp fields
Dec 6, 2019
pdecat
changed the title
Allow updating all datadog_integration_gcp fields
Cannot update all datadog_integration_gcp fields
Dec 6, 2019
1 task
Fixed in v2.6.0 by #394. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The only field of
datadog_integration_gcp
that can be updated ishost_filters
: https://github.com/zorkian/go-datadog-api/blob/v2.21.0/integrations.go#L235All other fields should then be marked as
ForceNew
.Also, it should be worth noting that the GCP integration has to first be manually enabled in the Datadog web console: https://myaccount.datadoghq.com/account/settings#integrations/google-cloud-platform
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.terraform -v
Terraform v0.12.5
Affected Resource(s)
datadog_integration_gcp
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
What should have happened?
Modifying any field other than host_filters should trigger a replacement of the integration as these cannot be read and/or updated.
Actual Behavior
What actually happened?
The update seems to happen in the state but no change happen on the datadog side.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform taint module.datadog-integration-cloud-gcp.google_service_account_key.sak
terraform apply
Produces the following plan:
Using TF_LOG=trace, we can see the request made to the Datadog API does nothing:
Important Factoids
N/A
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: