Pipeline Defaults and Credentials
When you configure a Snowflake pipeline, you specify the Snowflake URL for your account, the warehouse, and the role for the pipeline. The pipeline uses this information to access Snowflake data.
As a new user, when you specify these details in your first pipeline, they are stored in your StreamSets account as your Snowflake pipeline defaults. Snowflake pipeline defaults are added in new pipelines so you do not have to configure that information over and over again. You can change your Snowflake pipeline defaults at any time in your StreamSets account.
The user credentials required to connect to Snowflake are requested when needed. They are also securely stored in your StreamSets account for reuse.
Default Role and Overrides
- Snowflake pipeline defaults
- When you specify a role as a Snowflake pipeline default in your StreamSets account, then that role is used in all new pipelines by default.
- Pipeline properties
- If you do not have a role defined as a Snowflake pipeline default, the pipeline uses the Public role, by default. You can change this by configuring the Role property on the General tab of pipeline properties.
Specifying Snowflake Credentials
If you are a new user who has not provided your Snowflake credentials, Transformer for Snowflake requests the Snowflake credentials when you create your first Transformer for Snowflake pipeline. The credentials are then validated and stored securely for reuse.
- In the pipeline canvas, click .
-
In the Snowflake Credentials dialog box, configure the
following properties, and then click Save:
Snowflake Credentials Property Description Username Snowflake user name. Authentication Method Authentication method to use: password or private key. Password Password for the Snowflake account. Available when using password authentication.
Private Key Private key for the Snowflake account. Enter a PKCS#1 or PKCS#8 private key and include the key delimiters. For example, when entering a PKCS#8 private key, include the
-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
key delimiters.Available when using private key authentication.
Role Optional role to use when a role is not defined in the pipeline. When you do not specify a role in a pipeline or in this property, Snowflake uses the default role for the user. If the user has no default role, Snowflake uses the Public role. For more information, see the Snowflake documentation.
Use to limit access to the Snowflake account. However, note that the following permissions are generally required to run Snowflake pipelines:- Read
- Write
- Create Table
Applying Snowflake Pipeline Defaults
When you apply Snowflake pipeline defaults, the Snowflake pipeline defaults defined in your account are added to the pipelines, overriding the corresponding property configurations. No changes occur for properties that are not defined in your StreamSets account.
For example, say you define the Account URL and Warehouse Snowflake pipeline defaults. When you apply the Snowflake pipeline defaults to an existing pipeline, the definitions for the Snowflake URL and Warehouse properties in the pipeline are replaced with the Snowflake pipeline defaults. Other pipeline properties remain untouched.
You might apply Snowflake pipeline defaults to an existing pipeline if the pipeline was created before you defined or updated Snowflake pipeline defaults.
-
In the pipeline canvas, click
.A warning message indicates that applying Snowflake pipeline defaults overwrites existing pipeline properties.
-
If this is acceptable, click OK.
On the General tab, pipeline properties are replaced with the Snowflake pipeline defaults that are defined in your StreamSets account.