Skip to content

This directory gives a CDK IaC Deployment for an AWS Managed reliable Data Streaming Platform. Including Amazon MSK and Amazon Kinesis respectively.

License

Notifications You must be signed in to change notification settings

tecracer/reliable-data-streaming-platforms

Repository files navigation

Reliable Streaming Data Platform

This is a project for to quickly get started with Amazon MSK and Amazon Kinesis for your Data Streaming workloads. Therefore it contains two CloudFormation Stacks that can be independently deployed based on your needs.

Note: Once you meat all prerequisites for working with the AWS CDK you can simply deploy these stacks directly. For instructions on AWS CDK refere to the documentation and installation guide.

PreDeployment Steps

To deploy this solution using AWS CDK you first need to locally install all dependent packages usign npm.

npm install

Deploy Amazon MSK CloudFormation Stack

Quickly deploy Amazon MSK Cluster with the AWS CDK CLI. This will create an InTransit and AtRest encrypted Amazon MSK Cluster with three nodes (m5.large) within the default VPC using all three available subnets, the security group for the broker nodes opens inbound port 9092 (Apache Kafka Standard Port) to the default VPC CIDR Range.

Note: for convenience we use npx in this guide to provide you with the right version of AWS CDK to deploy this solution. When you have CDK installed globally with a different version this will always work and you wont get version conflicts.

npx [email protected] deploy "tRC-ApacheKafka-Stack" -c ACCOUNT_ID=<input-your-aws-account-id>

Deploy Amazon Kinesis CloudFormation Stack

Quickly deploy Amazon Kinesis Data Stream with the AWS CDK CLI. This will create an encrypted Kinesis Data Stream with two shards configured and a retention period of 24 hours (smallest possible value).

Note: for convenience we use npx in this guide to provide you with the right version of AWS CDK to deploy this solution. When you have CDK installed globally with a different version this will always work and you wont get version conflicts.

npx [email protected] deploy "tRC-AmazonKinesis-Stack" -c ACCOUNT_ID=<input-your-aws-account-id>

Destroy the Environment

You can quickly destroy the whole environment using the following command.

npx [email protected] destroy "*" -c ACCOUNT_ID=<input-your-aws-account-id>

Note: You could also selectively destroy the individual stacks when you replace the wildcard ("*") within the above command with the specific stack names from the deploy commands.

About

This directory gives a CDK IaC Deployment for an AWS Managed reliable Data Streaming Platform. Including Amazon MSK and Amazon Kinesis respectively.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published