Random Wits

Life is too short for a diary

$ about
├── tags

├── bookshelf

├── resources

├── quotes

├── habits

└── bio






Posts Tagged “aws”

Fri 25 Jun 2021

Dynamically create cloudformation stack using AWS CDK

AWS CDK is a great framework to programmatically deploy cloudformation stack. If you are unfamiliar with AWS CDK, I would recommend first to check out [Getting started with AWS CDK](http://randomwits.com/blog/tutorial-cdk-aws). One of the pet peeves I have while designing cloudformation template is redundancy. I have to manually copy-paste the same properties across multiple resources. I wanted to leverage AWS CDK to create an interface that would allow tto dynamically create cloudformation. For the interface, I harked back to the good old CSV file...

Continue reading → aws cdk cloudformation typescript tutorial


Mon 14 Jun 2021

Gettting Started with AWS CDK

Cloudformation service in AWS allows you to describe an entire set of resources required to make a pipeline. The cloudformation template can be described in JSON or YAML format. Updating the cloudformation template was not a pleasant experience. I wanted to discover alternative ways to generate cloudformation template programmatically.

The CDK library provides you a way to declare the resources in your favorite languages like Java, Javascript, Typescript, and Python. In this tutorial, we will use typescript to generate our cloudformation template...

Continue reading → aws cdk cloudformation typescript tutorial


Fri 23 Oct 2020

Export DynamoDB Table to S3 Bucket Using Lambda Function

Dynamodb is a great NoSQL service by AWS. One of the most common use case is to export data to s3. There are multiple ways to export data to s3. For this tutorial we will leverage lambda function to achieve our goal.

First, let us review our use case. Our lambda function will read the entire dynamodb table. It will then export the data in JSON to s3...

Continue reading → aws lambda function dynamodb s3