hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

datastream_stream should allow for GTID based replication #20383

Open PaulRudin opened 3 days ago

PaulRudin commented 3 days ago

Community Note

Description

Datastream streams can be created using GTID based replication: see https://cloud.google.com/datastream/docs/sources-mysql#gtid, but this is cannot be configured via the terraform provider

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_datastream_stream" "default" {
    display_name = "SQL Server to BigQuery"
    location     = "us-central1"
    stream_id    = "stream"

    source_config {
        source_connection_profile = google_datastream_connection_profile.source.id
        sql_server_source_config {
            include_objects {
                schemas {
                    schema = "schema"
                    tables {
                        table = "table"
                    }
                }
            }
           cdc_method = "gtid"
        }
    }

    destination_config { ...  }

    backfill_none {}
}

References

No response