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

feat(bigquery): Add cross-region replication support for BigQuery Dataset #13163

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ota2000
Copy link

@ota2000 ota2000 commented Feb 22, 2025

This PR adds support for cross-region replication configuration in BigQuery datasets.

Description

This change introduces the ability to configure cross-region replication for BigQuery datasets through Terraform. The feature allows users to automatically replicate their datasets to specified regions for improved availability and disaster recovery.

Key changes:

  • Added new cross_region_replication configuration block
  • Added example configuration for cross-region replication
  • Added documentation for the new feature

Example Configuration

resource "google_bigquery_dataset" "dataset" {
  dataset_id = "example_dataset"
  location = "US"
  cross_region_replication {
    enabled = true
    replica_regions = [
      "asia-northeast1",
      "europe-west1"
    ]
  }
}

Documentation

Added comprehensive documentation explaining:

  • How to enable cross-region replication
  • How to specify replica regions
  • Limitations and considerations

Release Note

bigquery: added `cross_region_replication` field to `google_bigquery_dataset` resource

Fixes: hashicorp/terraform-provider-google#18185

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Pull requests that need reviewer's approval to run presubmit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_bigquery_dataset replica setting
2 participants