User
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
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
Properties
The deletion policy for the user. Setting ABANDON
allows the resource to be abandoned rather than deleted. This is useful for Postgres, where users cannot be deleted from the API if they have been granted SQL roles. Possible values are: ABANDON
.
The password for the user. Can be updated. For Postgres instances this is a Required field, unless type is set to either CLOUD_IAM_USER or CLOUD_IAM_SERVICE_ACCOUNT. Don't set this field for CLOUD_IAM_USER and CLOUD_IAM_SERVICE_ACCOUNT user types for any Cloud SQL instance.