Update Snowflake docs (#10691)

* Update Snowflake docs

Snowflake docs had an issue, `DEFAULT ROLE` should be `DEFAULT_ROLE`

* Update docs to show an actual username
This commit is contained in:
Lauren Voswinkel 2021-01-13 14:59:16 -08:00 committed by GitHub
parent 438e6abdb3
commit d4b295baf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,8 +76,8 @@ the root credentials and still be able to access your account should something g
```text
$ vault write database/roles/my-role \
db_name=my-snowflake-database \
creation_statements="CREATE USER {{name}} PASSWORD = '{{password}}' DEFAULT ROLE = my_role'; \
GRANT my_role TO USER {{name}};" \
creation_statements="CREATE USER {{name}} PASSWORD = '{{password}}' DAYS_TO_EXPIRY = {{expiration}} DEFAULT_ROLE=myrole;
GRANT ROLE myrole TO USER {{name}};" \
default_ttl="1h" \
max_ttl="24h"
Success! Data written to: database/roles/my-role
@ -99,7 +99,7 @@ the proper permission, it can generate credentials.
lease_duration 1h
lease_renewable true
password SsnoaA-8Tv4t34f41baD
username v-vaultuse-my-role-x
username v_root_my_role_fU0jqEy4wMNoAY2h60yd_1610561532
```
## API