AWS

Working with AWS cdk

CDK is opensource software development framework to model and provision your cloud application using familier languages. it provisions resources as Cloud-formation (Json document mentioning resources)

Setting-up environment-

  • Install cdk
    • Confirm installation : cdk –versoin
  • Set the profile in c:/users/[username/]//.aws/credentials

cdk init- create a new cdk [choice of language preferably typescript] project

Command – cdk init -l typescript Here, -l option is for language in which cdk project to be created

Project structure after init command

Description of above files created :

  1. a bin sub-directory – which includes myapp-cdk.ts,the file contains the entry point for your cdk app.
  2. a lib sub-directory, which includes myapp-cdk-stack.ts file. this file contains the code for aws cdk stack
  3. a node_modules sub-directory,
  4. A test sub-directory,
  5. A cdk.json file,
  6. A jest.config.js file, which is used for jest testing.
  7. A package-lock.json file,
  8. A package.json file,
  9. A tsconfig.json file, [for description refer lab]

Published by

Unknown's avatar

sevanand yadav

software engineer working as web developer having specialization in spring MVC with mysql,hibernate

Leave a comment