Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.53 KB

File metadata and controls

62 lines (42 loc) · 1.53 KB

AWS Lambda serverless sns template


A template for develop lambda project integrate with SNS (Simple Notification Service) with divided environment variable

🧐 About

This repo contains template for lambda serverless with Simple Notification Service

Overview

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

💻 Prerequisites

📦 Installing

Run following command in your terminal (you are in lambda-serverless-template folder):

  • Install dependency
yarn
  • Test application at local
sls invoke local -f sendEmail --path src/functions/send-email/mock.json --stage local

🚀 Deployment

Deploy all functions

sls deploy --stage ${stageName}
  • Example: sls deploy --stage dev

Deploy single function

sls deploy --stage production -f syncnft

🐛 Common error

Error How to fix