AWS Cloud Development Kit Hands On (CDK)

Firgure 1 — Overview
Run Step by step below statements on AWS console like as Figure 2# 1. install the CDKsudo npm install -g aws-cdk# directory name must be cdk-app/ to go with the rest of the tutorial, changing it will cause an errormkdir cdk-appcd cdk-app/# initialize the applicationcdk init --language javascript# verify it works correctlycdk ls# install the necessary packagesnpm install @aws-cdk/aws-s3 @aws-cdk/aws-iam @aws-cdk/aws-lambda @aws-cdk/aws-lambda-event-sources @aws-cdk/aws-dynamodb# 2. copy the content of cdk-app-stack.js into lib/cdk-app-stack.js# 3. setup the Lambda functionmkdir lambda && touch 4. bootstrap the CDK applicationcdk bootstrap# 5. (optional) synthesize as a CloudFormation templatecdk synth# 6. deploy the CDK stackcdk deploy# 7. empty the s3 bucket# 8. destroy the stackcdk destroy

Figure 2

When deploy successful we will go to s3 bucket console upload sample image

and see result will be saved on DynamoDB like picture below




AI Engineer, AWS Cloud Engineer, Senior Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using Bitbucket Pipeline for AWS ECS deployments

You should know how to Vim

Symmetric Pairs — HackerRank Advanced SQL (cool)

Build a new-age Cost-Effective Business Intelligence System using Azure Data Lakehouse and Synapse…

#milk #rrkuyumculuk #milk #rrkuyumculuk

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


AI Engineer, AWS Cloud Engineer, Senior Software Engineer

More from Medium

AWS VCP IP Address Manager (IPAM)

No card ? go cardless..

Business Apps development guide with Low coding — Part 3 — UI

Futuristic UI from Star Wars film.

CS 373 Spring 2022: Nisha Ramesh