User Args
data class UserArgs(val deletionPolicy: Output<String>? = null, val host: Output<String>? = null, val instance: Output<String>? = null, val name: Output<String>? = null, val password: Output<String>? = null, val passwordPolicy: Output<UserPasswordPolicyArgs>? = null, val project: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<UserArgs>
Creates a new Google SQL User on a Google SQL User Instance. For more information, see the official documentation, or the JSON API.
Note: All arguments including the username and password will be stored in the raw state as plain-text.
Import
SQL users for MySQL databases can be imported using the project
, instance
, host
and name
, e.g.
$ pulumi import gcp:sql/user:User users my-project/main-instance/my-domain.com/me
Content copied to clipboard
SQL users for PostgreSQL databases can be imported using the project
, instance
and name
, e.g.
$ pulumi import gcp:sql/user:User users my-project/main-instance/me
Content copied to clipboard