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.
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
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template