Skip to content

Example of streaming real-time data into Snowflake using Kinesis Streams

Notifications You must be signed in to change notification settings

ottofeller/aws-cdk-kinesis-streaming-into-snowflake

Repository files navigation

Streaming real-time data into Snowflake using Kinesis Streams

Example of the AWS CDK Application described in our blog post. The application includes СFN stack and all the resources needed to stream data into a Snowflake table using Kinesis Streams and Kinesis Data Firehose.

Snowflake setup

To ensure connection to Snowflake you need a Snowflake user with permissions to insert data into the table and also need to configure key pair authentication for the user. Follow this guide, it should be relatively simple.

Next, create a secret in AWS Secrets Manager containing this private key. This secret will be used by the Kinesis Data Firehose delivery stream to authenticate with Snowflake.

aws secretsmanager create-secret \
  --name Snowflake/PrivateKey \
  --secret-string file://path/to/private-key-file

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

Example of streaming real-time data into Snowflake using Kinesis Streams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published