SnowflakeCLI
Run Snowflake commands.
type: "io.kestra.plugin.jdbc.snowflake.SnowflakeCLI"
Show basic infos and connection status
id: snowflake
namespace: company.team
tasks:
- id: log_info_and_connection_status
type: io.kestra.plugin.jdbc.snowflake.SnowflakeCLI
account: snowflake_account
username: snowflake_username
password: snowflake_password
commands:
- snow --info
- snow connection test
List Snowflake staged files
id: snowflake
namespace: company.team
tasks:
- id: list_stage_files
type: io.kestra.plugin.jdbc.snowflake.SnowflakeCLI
account: snowflake_account
username: snowflake_username
password: snowflake_password
commands:
- snow stage list-files @MY_WAREHOUSE.MY_SCHEMA.%MY_TABLE_STAGE_NAME
Run Snowflake SQL select via CLI
id: snowflake
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.jdbc.snowflake.SnowflakeCLI
account: snowflake_account
username: snowflake_username
password: snowflake_password
commands:
- snow sql --query="SELECT 1"
YES
The account to use for authentication.
YES
The commands to run. Please refer to SnowflakeCLI documentation https://docs.snowflake.com/en/developer-guide/snowflake-cli/command-reference/overview
YES
The username to use for authentication.
YES
ghcr.io/kestra-io/snowflake-cli
The snowflake container image.
YES
Additional environment variables for the current process.
YES
The files to create on the local filesystem. It can be a map or a JSON object.
NO
Inject namespace files.
Inject namespace files to this task. When enabled, it will, by default, load all namespace files into the working directory. However, you can use the include
or exclude
properties to limit which namespace files will be injected.
YES
The files from the local filesystem to send to Kestra's internal storage.
Must be a list of glob expressions relative to the current working directory, some examples: my-dir/**
, my-dir/*/**
or my-dir/my-file.txt
.
YES
The password to use for authentication.
YES
The private key file for key pair authentication and key rotation for authentication/
It needs to be an un-encoded private key in plaintext like: 'MIIEvwIBADA...EwKx0TSWT9A=='
YES
Specifies the private key password for key pair authentication and key rotation.
NO
{
"type": "io.kestra.plugin.scripts.runner.docker.Docker"
}
The task runner to use.
0
The exit code of the entire flow execution.
The output files' URIs in Kestra's internal storage.
The value extracted from the output of the executed commands
.
YES
true
Whether to enable namespace files to be loaded into the working directory. If explicitly set to true
in a task, it will load all Namespace Files into the task's working directory. Note that this property is by default set to true
so that you can specify only the include
and exclude
properties to filter the files to load without having to explicitly set enabled
to true
.
YES
A list of filters to exclude matching glob patterns. This allows you to exclude a subset of the Namespace Files from being downloaded at runtime. You can combine this property together with include
to only inject a subset of files that you need into the task's working directory.
YES
OVERWRITE
OVERWRITE
FAIL
WARN
IGNORE
Comportment of the task if a file already exist in the working directory.
YES
A list of filters to include only matching glob patterns. This allows you to only load a subset of the Namespace Files into the working directory.
YES
["{{flow.namespace}}"]
A list of namespaces in which searching files. The files are loaded in the namespace order, and only the latest version of a file is kept. Meaning if a file is present in the first and second namespace, only the file present on the second namespace will be loaded.
NO
\d+\.\d+\.\d+(-[a-zA-Z0-9-]+)?|([a-zA-Z0-9]+)
The version of the plugin to use.