Skip to content

Latest commit

 

History

History
94 lines (55 loc) · 2.71 KB

README.09.serverless.cli.md

File metadata and controls

94 lines (55 loc) · 2.71 KB

Serverless AWS Lambda CLI Reference

Using the AWS Management Console:

Using Serverless CLI:

Create service in current working directory

serverless create --template aws-nodejs

Create service in new folder:

serverless create --template aws-nodejs --path myService

Create service in new folder using a custom template

serverless create --template-url https://github.com/serverless/serverless/tree/master/lib/plugins/create/templates/aws-nodejs --path myService

Available templates for Node

aws-nodejs
aws-nodejs-typescript
aws-nodejs-ecma-script

Creating a new plugin

To generate the scaffolding for a hello world plugin that demonstrates how to create a new command and how to listen to the various events available.

serverless create --template plugin

AWS - Logs

Examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework and AWS Lambda.

How to Make a Serverless GraphQL API using Lambda and DynamoDB

GraphQL query endpoint in NodeJS on AWS with DynamoDB

Let's see how easy it is to use GraphQL with the Serverless Framework:

Serverless GraphQL Examples for AWS AppSync and Apollo

Part 1: This post! GraphQL endpoints with API Gateway + AWS Lambda:

Part 2: AppSync Backend: AWS Managed GraphQL Service:

Create a Node REST API with Express.js

We will:

  • Deploy a simple API endpoint.
  • Add a DynamoDB table and two endpoints to create and retrieve a User object.
  • Set up path-specific routing for more granular metrics and monitoring.
  • Configure your environment for local development for a faster development experience.