RasikhJ / serverless-v3-serverless-compose-yaml-

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless Compose Beta example

This example demonstrates how Serverless Compose Beta can be used for orchestrating deployments of multiple Serverless Framework services. In this case, there are 3 separate services:

  • resources, which provisions SQS queues;
  • producer, which provisions a Lambda function that publishes messages to SQS queue;
  • consumer, which consumes the messages from a SQS queue;

For more details about Serverless Compose, please refer to documentation.

Usage

In order to try it out, make sure you have serverless-compose tool installed:

npm i -g @serverless/compose

In order to deploy service, run the following command in service directory:

serverless-compose deploy

In order to remove service, run the following command in service directory:

serverless-compose remove

In order to retrieve service outputs, run the following command in service directory:

serverless-compose info

In order to retrieve logs from services, run the following command in service directory:

serverless-compose logs

About


Languages

Language:JavaScript 100.0%