Skip to content

Enable Private Path for Google Cloud Services for CloudSQL module #2725

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

Closed
fulyagonultas opened this issue Nov 21, 2024 · 2 comments
Closed

Comments

@fulyagonultas
Copy link
Contributor

fulyagonultas commented Nov 21, 2024

Add attribute enable_private_path_for_google_cloud_services to the folllowing resource to make it possible to use Bigquery's running federated wueries against CloudSQL:

resource "google_sql_database_instance" "primary" {
  provider            = google-beta
  project             = var.project_id
  name                = "${local.prefix}${var.name}"
  region              = var.region
  database_version    = var.database_version
  encryption_key_name = var.encryption_key_name
  root_password       = var.root_password

  settings {
    tier                        = var.tier
    edition                     = var.edition
    deletion_protection_enabled = var.gcp_deletion_protection
    disk_autoresize             = var.disk_size == null
    disk_autoresize_limit       = var.disk_autoresize_limit
    disk_size                   = var.disk_size
    disk_type                   = var.disk_type
    availability_type           = var.availability_type
    user_labels                 = var.labels
    activation_policy           = var.activation_policy
    collation                   = var.collation
    connector_enforcement       = var.connector_enforcement
    time_zone                   = var.time_zone

    ip_configuration {
      ipv4_enabled       = var.network_config.connectivity.public_ipv4
      private_network    = try(var.network_config.connectivity.psa_config.private_network, null)
      allocated_ip_range = try(var.network_config.connectivity.psa_config.allocated_ip_ranges.primary, null)
      ssl_mode           = var.ssl.ssl_mode
      **enable_private_path_for_google_cloud_services = var.network_config.connectivity.enable_private_path_for_google_cloud_services** 
@juliocc
Copy link
Collaborator

juliocc commented Nov 21, 2024

This is a pretty straightforward change. Can you send a PR and we'll help you getting it merged?

@fulyagonultas
Copy link
Contributor Author

sure! please review #2726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants