I'd like to access my CloudSQL instance from my GKE Cluster pods. Since I am setting up I need to bring everything GCP related to the Terraform configuration files.
Following this tutorial: https://cloud.google.com/sql/docs/mysql/quickstart-kubernetes-engine#gcloud_2
I am stuck with two steps that describe the creating of a peering vpc connection.
So my question is what are the Terraform equivalents for the following two commands:
gcloud compute addresses create google-managed-services-default \
--global \
--purpose=VPC_PEERING \
--prefix-length=16 \
--description="peering range for Google" \
--network=default
and
gcloud services vpc-peerings connect \
--service=servicenetworking.googleapis.com \
--ranges=google-managed-services-default \
--network=default
I tried to find it in https://registry.terraform.io/providers/hashicorp/google/latest/docs but could not find the proper ones.