Add enable_private_path_for_google_cloud_services
field to google_sql_database_instance
resource
#13668
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new field
enable_private_path_for_google_cloud_services
(settings.ip_configuration.enable_private_path_for_google_cloud_services
) to thegoogle_sql_database_instance
resource.The Cloud SQL for MySQL and PostgreSQL now supports a new IP configuration option,
enablePrivatePathForGoogleCloudServices
.https://cloud.google.com/sql/docs/release-notes#December_15_2022
Before this new GA feature was introduced, we needed to enable a public IP for Cloud SQL instances for BigQuery Data Transfer Service to reach Cloud SQL. This is no longer needed.
The Golang
google.golang.org/api/sqladmin/v1
SDK supports theIpConfiguration.EnablePrivatePathForGoogleCloudServices
field since v0.104.0.https://pkg.go.dev/google.golang.org/[email protected]/sqladmin/v1#IpConfiguration
The version of the Go library
google.golang.org/api
that this repository currently uses is v0.102.0. So this PR is blocked by PR #6962, which upgrades the library to v0.105.0.If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)
Derived from GoogleCloudPlatform/magic-modules#6986