Skip to content

googleSqlDatabaseInstance

Use this data source to get information about 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.dataGoogleSqlDatabaseInstance.DataGoogleSqlDatabaseInstance(
  this,
  "qa",
  {
    name: "test-sql-instance",
  }
);

Argument Reference

The following arguments are supported:

  • name - (required) The name of the instance.

  • project - (optional) The ID of the project in which the resource belongs.

Attributes Reference

See google_sql_database_instance resource for details of all the available attributes.