Add the sqladmin google project service.

This commit is contained in:
Tom Alexander 2021-07-18 18:33:30 -04:00
parent 349d40c8f6
commit 5945ad86a8
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -30,6 +30,13 @@ output "connection_name" {
value = google_sql_database_instance.instance.connection_name
}
# Needed for CloudSQL Auth Proxy
resource "google_project_service" "sqladmin" {
project = var.project
service = "sqladmin.googleapis.com"
disable_dependent_services = true
}
resource "random_id" "cloudsql" {
byte_length = 4
}