Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 951 Bytes

File metadata and controls

59 lines (42 loc) · 951 Bytes

Description

Build express apps on top of AWS Lambda with serverless architectures

Enviroment

$ cp .env.example .env

Installation

$ npm install

Running the app

# dev mode
$ npm run start:dev

# production mode
$ npm run start:prod

Deploy

# dev deploy
$ npm run deploy:dev

# production deplou
$ npm run deploy:prod

AWS Policies

Here are the policies you have to attach to your User/CodePipeLineRole to be able to deploy using CloudFormation.

  • AWSLambda_FullAccess
  • AmazonS3FullAccess
  • IAMFullAccess
  • CloudWatchFullAccess
  • AmazonAPIGatewayAdministrator (v2)
  • AWSCloudFormationFullAccess
$ serverless config credentials \
  --provider aws \
  --key AKIAIOSFODNN7EXAMPLE \
  --secret wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

Todos

  • Add node_modules to lambda layers
  • Add amazon EFS setup
  • Dinamically load .env variables on aws codebuild