Create, build and Deploy a Sample Hello World App using AWS SAM

Lab Details

  1. This lab walks you through the steps to create, build and deploy the sample node.js Hello World application using AWS Serverless Application Model (SAM).

  2. Duration: 90 minutes

  3. AWS Region: US East (N. Virginia) us-east-1


What is AWS SAM?

  • An Open source framework meant to create and build serverless applications.

  • Using AWS SAM, with a few lines of code per resource, you can define the application you want in the form of YAML.

  • During deployments, To build your application faster, SAM transforms and expands the SAM syntax into CloudFormation Syntax.

  • AWS SAM Provides shorthand syntax to express functions, APIs, databases, and event source mappings.

Architecture Diagram

Task Details

  1. Launching Lab Environment

  2. SSH into EC2 Instance using Session Manager

  3. Install Docker, AWS CLI, and SAM CLI

  4. Configure the AWS CLI on EC2 Instance

  5. Download the sample SAM Application

  6. Build and Deploy your application