Use this data source to get information about a list of databases in a Cloud SQL instance.
data "google_sql_databases" "qa" {
instance = google_sql_database_instance.main.name
}
The following arguments are supported:
instance
- (required) The name of the Cloud SQL database instance in which the database belongs.
project
- (optional) The ID of the project in which the instance belongs.
See google_sql_database resource for details of all the available attributes.