Lambda Function
Minimal working example
Prerequisites
- An ECR repository with Docker images exists
Code Example
Scenarios
A Lambda Function that triggers on SQS

A Lambda function that are triggered by incoming messages from SQS queue.
The following code provisions an SQS queue new-visitors and a Lambda Function add-visitor-to-database. The Lambda Function is triggered for each new messages that are put in the aforementioned queue:
| main.tf | |
|---|---|