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

ip_configuration - enable_private_path_for_google_cloud_services #442

Closed
sherintky opened this issue Mar 14, 2023 · 5 comments
Closed

ip_configuration - enable_private_path_for_google_cloud_services #442

sherintky opened this issue Mar 14, 2023 · 5 comments
Labels
enhancement New feature or request Stale

Comments

@sherintky
Copy link

TL;DR

The parameter "enable_private_path_for_google_cloud_services" under " ip_configuration" is not enabled in google module. Hence we are unable to enable it from terraform. When we enable it from console, terraform is overwriting the value to null. This parameter is available in terraform resource, but not available in the google module. When we try to add this parameter in lifecycle ignore changes, it is not accepting. Error is "The block type name "lifecycle" is reserved for use by Terraform in a future version". Please advise.

Terraform Resources

resource "google_sql_database_instance" "instance" {
  provider = google-beta

  name             = "private-instance-${random_id.db_name_suffix.hex}"
  region           = "us-central1"
  database_version = "MYSQL_5_7"

  depends_on = [google_service_networking_connection.private_vpc_connection]

  settings {
    tier = "db-f1-micro"
    ip_configuration {
      ipv4_enabled                                  = false
      private_network                               = google_compute_network.private_network.id
      enable_private_path_for_google_cloud_services = true
    }
  }
}

Detailed design

Terraform plan when private path enabled from console

 ~ resource "google_sql_database_instance" "default" {
        id                             = "prsql-for-testing"
        name                           = "prsql-for-testing"
        # (14 unchanged attributes hidden)

      ~ settings {
            # (12 unchanged attributes hidden)



          ~ ip_configuration {
              - enable_private_path_for_google_cloud_services = true -> null
                # (3 unchanged attributes hidden)
            }


            # (15 unchanged blocks hidden)
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Additional information

No response

@sherintky sherintky added the enhancement New feature or request label Mar 14, 2023
@disusered
Copy link

We are also having issues with this, seems to be a new toggle for Cloud SQL.

@ipardogranillo
Copy link

Same issue here, this flag is not being recognized by terraform.

@sherintky
Copy link
Author

@ravisiddhu : Thanks for enabling the private path. It looks there is constrain that from CFT version 14.0.0 onwards minimum terraform provider version >= 1.3.0. But we are using terraform 0.13.5 and 1.2.0 version in our environment. Could you please advise how can we enable private path for terraform 0.13.5 and 1.2.0.

@sherintky
Copy link
Author

@ravisiddhu : Thanks for enabling the private path. It looks there is constrain that from CFT version 14.0.0 onwards minimum terraform provider version >= 1.3.0. But we are using terraform 0.13.5 and 1.2.0 version in our environment. Could you please advise how can we enable private path for terraform 0.13.5 and 1.2.0.

Can you please provide an update.

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Jun 19, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

3 participants