Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Run lambda functions built with CDK locally using AWS SAM

    awsAWS

    Building and debugging lambda functions can be tricky.

    Once a function becomes non-trivial, the cycle of:

    • build
    • deploy to AWS
    • test
    • fix
    • repeat

    wastes a lot of time. Luckily, there's an alternative.

    In this quick lesson we're going to learn how to use AWS Serverless Application Model (SAM) command line interface in order to execute a lambda function built with CDK locally.

    This lesson is a bit optional because it touches a topic that is not going to be relevant for the rest of this course (although running lambda functions locally is really useful).

    If you'd like to learn more about AWS SAM, there's a whole collection about it: Build serverless applications with AWS Serverless Application Model (AWS SAM)