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

google_dialogflow_cx_security_settings isn't consistently create-able #18735

Closed

Comments

@mmurakowski-verily
Copy link

mmurakowski-verily commented Jul 15, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

Terraform vX.X.X
on

  • provider registry.terraform.io/hashicorp/google vX.X.X
  • provider registry.terraform.io/hashicorp/google-beta vX.X.X

Affected Resource(s)

google_dialogflow_cx_security_settings

Terraform Configuration

resource "google_dialogflow_cx_security_settings" "security_settings" {
  location            = "global"
  display_name        = "mmurakowski-local-testing-01"
  redaction_strategy  = "REDACT_WITH_SERVICE"
  redaction_scope     = "REDACT_DISK_STORAGE"
  inspect_template    = google_data_loss_prevention_inspect_template.possible_inspect_template.id
  deidentify_template = google_data_loss_prevention_deidentify_template.redact_template.id
  purge_data_types    = ["DIALOGFLOW_HISTORY"]
}

Debug Output

https://paste.googleplex.com/6011683166486528#

Expected Behavior

No response

Actual Behavior

│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to
│ module.assistant-dialogflow-t1d-agent.google_dialogflow_cx_security_settings.security_settings,
│ provider "provider[\"registry.terraform.io/hashicorp/google\"]" produced an
│ unexpected new value: Root resource was present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵

Steps to reproduce

  1. terraform apply

Important Factoids

Me and Riley discussed already. Looks like the securitySettings API isn't consistent; it returns a success response before the resource is GETable.

References

No response

b/353774151

@ggtisc
Copy link
Collaborator

ggtisc commented Jul 17, 2024

Confirmed issue!

@mmurakowski-verily team is actively trying to create a security settings object with terraform, and this was confirmed by @rileykarson. Among other things there are a couple of arguments that are not in the Argument reference section of terraform registry in comparison with API documentation:

  • name
  • deidentifyTemplate
  • purgeDataTypes[]
  • audioExportSettings
  • insightsExportSettings
  • retentionWindowDays
  • retentionStrategy

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.