googleSqlDatabases
Use this data source to get information about a list of databases in a Cloud SQL instance.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.dataGoogleSqlDatabases.DataGoogleSqlDatabases(this, "qa", {
instance: "${google_sql_database_instance.main.name}",
});
Argument Reference
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.
-> Note This datasource performs client-side sorting to provide consistent ordering of the databases.
Attributes Reference
See google_sql_database resource for details of all the available attributes.