In this demo, we have the following resources:
- An EventBridge Rule
- Two Lambda functions
- A AWS SQS Standard Queue
Every 10 minutes the EventBridge Rule will trigger the Sender AWS Lambda Function. This functions writes a message to the AWS SQS, which triggers another AWS Lambda Function.
First of all, install the dependencies:
brew install node
npm i
npm i -g serverless
To deploy this application:
sls deploy
You can set the stage
and region
with the respective flags --stage
and --region
.
To remove the application:
sls remove
If you used flags to deploy the application, you must use them again