Setup Warehouse
Warehouse Setup
PEERDB_WAREHOUSE
value in the scriptPEERDB_WAREHOUSE
value in the script to the name of the shared warehouseRole, User and Database Setup
PEERDB_ROLE
, PEERDB_DATABASE
, PEERDB_USER
, and PEERDB_5TR0NG_P455W0RD
values with values that conform to your specific naming conventions for those resources.PEERDB_USER
for any other purpose.Roles and Permissions
Run the Script
Terminal
Generate Private Key
rsa_key.p8
). You can generate an encrypted version of the private key or an unencrypted version of the private key.Generate Unencrypted Key-pair
Generate Encrypted Key-pair
AES256
if needed. PeerDB supports the following alternative algorithms:AES128
DES3
Generate Public Key
rsa_key.pub
) by referencing the private key. Execute the commandAssign Public Key
<PUBLIC_KEY>
value with the string between the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY-----
statements.
Exclude the -----BEGIN PUBLIC KEY-----
and -----END PUBLIC KEY-----
parts of the string.Apart from that, multiple lines in the public key are fine.account_id
, you can either get it via a query or from the Snowflake UI:Account ID via SQL Query
account_id
, run the following query in Snowflake worksheet:.snowflakecomputing.com
from the output of the above query to get the account identifier.Example in lixxxxx.us-east-1.snowflakecomputing.com
, you want to use lixxxxx.us-east-1
as the account identifier.Account ID via Snowflake Web Interface
Get Snowflake Account Identifier via the Snowflake Web Interface
.
) in the account identifier with hyphens (-
).Example, in AB1234.XYZ987
, you want AB1234-XYZ987
password
is NOT the account password. It is the password used to encrypt the
private key, if using an encrypted private key.Configure PeerDB UI with Snowflake Connection details
password
is NOT the account password. It is the password used to encrypt the
private key, if using an encrypted private key.