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