-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow force creation of datastream stream and skip validation #14022
Allow force creation of datastream stream and skip validation #14022
Comments
@melinath to triage |
@iperetz-goo what do you think about this? |
@melinath yep thats a reasonable request, we expose this capability in the API via a request parameter - |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
My current work-around is to ClickOps the resource with identical values to what's defined in HCL code, then import the resource with an |
We are facing the same issue when creating the |
@tcaddy Can you provide sample code on your work around. |
I actually figured out the cause of my issue and it kinda explains how my "work around" even worked in the first place. Here's what happened: we were refreshing a lower environment with a restore of the prod database. It just so happens that we had the same username and host for the cloud sql users in both production and lower environments, but the passwords were different. Terraform never detected the drift (the fact that the passwords didn't match). The solution is to delete the cloud sql user accounts after restore and let terraform recreate them with the correct password. |
Creating the profile without validation would be still useful. When a proxy is needed to connect the datastream to cloudsql, a proxy is needed. Creating this proxy is not necessarily tied to the same process. This causes terraform to fail because of the validation |
Community Note
Description
Creation of
google_datastream_stream
fails when terraform is unable to successfully complete validation. Request is the ability to allow creation of the resource in theNOT_STARTED
state similiar to how one would usegcloud datastream update -force
New or Affected Resource(s)
Potential Terraform Configuration
References
b/299600924
The text was updated successfully, but these errors were encountered: