Add the sqladmin google project service.
This commit is contained in:
parent
349d40c8f6
commit
5945ad86a8
@ -30,6 +30,13 @@ output "connection_name" {
|
|||||||
value = google_sql_database_instance.instance.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" {
|
resource "random_id" "cloudsql" {
|
||||||
byte_length = 4
|
byte_length = 4
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user