# Snowflake

To register a Snowflake account into TrustLogix follow the below steps

1\. Create a data source entry in TrustLogix

2\. Run the auto generated script in Snowflake environment

3\. Gather all required information about Snowflake account

4\. Update the details in TrustLogix and Save

#### **Create a Snowflake Data Source In TrustLogix** <a href="#register-snowflake-data-source" id="register-snowflake-data-source"></a>

* Login to TrustLogix console and register a new Snowflake Datasource from Menu → Data sources → Register new data source
* Provide the data source name, & click on Register data source
* Form will be refreshed with additional fields and script Download option

**Run the script in Snowflake environment**

* Click on Download button to download the script
* Extract the downloaded script, extracted script will contain multiple files
  * Either choose to run the script as py notebook or as SQL script
* Replace the placeholder values in script, like password etc
* Run the updated script, script needs to be **executed** as **ACCOUNTADMIN**
* After successful run of the script, required objects are created in snowflake
* Capture the output of the script and also gather&#x20;
  * snowflake account identifier
  * username and password if authentication type is basic auth
  * If authentication mode is [Key-Pair ](https://docs.trustlogix.io/data-sources/snowflake/key-pair-authentication-setup)generate keys and keep it ready

&#x20;**Save the captured details in TrustLogix**

* Navigate back to TrustLogix data source form page
* Enter all the required details in form
* Click on save, system will validate the connection details and saves them
* If all details are valid, Snowflake data source is successfully registered & shown as active in the list


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trustlogix.io/data-sources/snowflake.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
