Giter Club home page Giter Club logo

gefyra-cdk-demo's Introduction

AWS CDK Tutorial By Jonathan Moo

Disclaimer

This is by no means the de facto way to do things. AWS CDK is relatively new, and there are too much information to digest. Hence, I'm writing on account of what I use in my daily work for knowledge sharing.

If you find anything useful or erratas, reach me and comment on my page at https://gefyra.co/getting-started-with-aws-cdk/.

How to use this Git repo?

This repo contains the code references in my website at: https://gefyra.co/category/tutorials/data-engineering/aws-cdk/

Each tutorial will reference a git branch. For example, Preparing Your AWS CDK Framework will reference CDK-T1.

The master branch will contain the latest tutorial reference, but individual tutorials can be referenced by the branch name.

Overview Of Tutorials

  1. Getting Started With AWS CDK - No branch
  2. Preparing Your AWS CDK Framework - CDK-T1
  3. Creating An S3 Bucket With AWS CDK - CDK-T2
  4. Creating A basic Lambda Function with AWS CDK - CDK-T3
  5. Connecting S3 with Lambda on AWS CDK - CDK-T4
  6. Simple Unit Test For AWS Lambda - TEST-1
  7. How To Upgrade Your AWS CDK Stack To Version 2 In Typescript - CDK-T5

How To Deploy

Basic Lambda: CDK-T3

  1. Run: npm run build && cdk synth
  2. Run: cdk deploy basicLambdaStack
    • If you're running against with a customized profile, use: cdk deploy <stack name> --profile <aws profile name>

Unit Testing For Lambda

Simple Unit Test For AWS Lambda: TEST-1

We use pipenv to isolate our python environment for our Lambda deployment.

Run coverage run -m pytest <test_script> --pylint to test and to generate a test coverage report.

Run coverage report to generate a summarized report.

Run coverage html to generate visualization and breakdown of the test.

gefyra-cdk-demo's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.