User
Creates a new Google SQL User on a Google SQL User Instance. For more information, see the official documentation, or the JSON API.
Import
SQL users for MySQL databases can be imported using the project, instance, host and name, e.g. * {{project_id}}/{{instance}}/{{host}}/{{name}} SQL users for PostgreSQL databases can be imported using the project, instance and name, e.g. * {{project_id}}/{{instance}}/{{name}} In Terraform v1.5.0 and later, use an import block to import NAME_HERE using one of the formats above. For exampletf MySQL database import { id = "{{project_id}}/{{instance}}/{{host}}/{{name}}" to = google_sql_user.default } PostgreSQL database import { id = "{{project_id}}/{{instance}}/{{name}}" to = google_sql_user.default }
$ pulumi import gcp:sql/user:User When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), NAME_HERE can be imported using one of the formats above. For exampleMySQL database
$ pulumi import gcp:sql/user:User default {{project_id}}/{{instance}}/{{host}}/{{name}}PostgreSQL database
$ pulumi import gcp:sql/user:User default {{project_id}}/{{instance}}/{{name}}