Serverless Framework— Create Nodejs AWS Lambda

AWS Lambda (Generated from CloudFormation Designer)

Create project using node js template

serverless create — template aws-nodejs — path serverless-demo
serverless deploy

Serverless Logs

Serverless: Packaging service…
Serverless: Excluding development dependencies…
Serverless: Creating Stack…
Serverless: Checking Stack create progress…
……..
Serverless: Stack create finished…
Serverless: Uploading CloudFormation file to S3…
Serverless: Uploading artifacts…
Serverless: Uploading service serverless-demo.zip file to S3 (390 B)…
Serverless: Validating template…
Serverless: Updating Stack…
Serverless: Checking Stack update progress…
……………
Serverless: Stack update finished…
Service Information
service: serverless-demo
stage: dev
region: us-east-1
stack: serverless-demo-dev
resources: 6
api keys:
None
endpoints:
None
functions:
hello: serverless-demo-dev-hello
layers:
None
  • AWS::Lambda::Function — serverless-demo-dev-hello
  • AWS::Lambda::Version — arn:aws:lambda:us-east-1:AccountID:function:serverless-demo-dev-hello:1
  • AWS::Logs::LogGroup — /aws/lambda/serverless-demo-dev-hello
  • AWS::IAM::Role — IamRoleLambdaExecution
  • AWS::S3::Bucket — S3 Bucket for our package
  • AWS::S3::BucketPolicy — S3 Bucket Policy

--

--

--

Backend Engineer, Cloud Practitioner

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

TryHackMe-Skynet

Message Oriented Middleware — RabbitMQ — Part 1

Robinhood Portfolio — A view via Tableau

Amazon Cloud Migration: Energizing Business with Best-in-Class Technology

Kafka event exchange between local and Azure

Grease Trap Cleaning Thompson ND

Software Developer House

Find help to trigger your Obyte powered Autonomous Agents when you need it

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pradheepa P

Pradheepa P

Backend Engineer, Cloud Practitioner

More from Medium

AWS — Sending CloudWatch custom logs from Lambda (node.js)

Frictionless Serverless Development: Part 3— Authentication

How to build and package Node.js Lambda code along with dependencies in Docker

Use of AWS CloudFront with Lambda@Edge for S3 accessing