Skip to content

google_datastream_* resources force replacement due to create_without_validation #21780

@Dragotic

Description

@Dragotic

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 v1.6.6
on darwin_arm64

  • provider registry.terraform.io/carlpett/sops v1.1.1
  • provider registry.terraform.io/hashicorp/google v6.24.0

Affected Resource(s)

google_datastream_*

Terraform Configuration

resource "google_datastream_connection_profile" "bigquery_destination" {
  display_name          = "BigQuery Destination"
  location              = var.region
  connection_profile_id = "${var.env}-bigquery"
  bigquery_profile {}
}

Debug Output

https://gist.github.com/Dragotic/dfd240c71445b26ff44f6fe4ec914432

Expected Behavior

The resource is imported and only update changed fields

Actual Behavior

The resource is imported but forces replacement due to create_without_validation parameter which doesn't matter if it's true or false.

Steps to reproduce

  1. terraform apply to create the resource
  2. terraform state rm google_datastream_connection_profile.bigquery_destination to remove it from state
  3. terraform apply with:
import {
  id = "${local.project_id}/us-central1/staging-bigquery"
  to = google_datastream_connection_profile.bigquery_destination
}
  1. Terraform imports but wants to recreate the resource.

Important Factoids

All the resources under google_datastream_* have the exact same behavior for me

References

No response

b/405150769

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions