2023-04-08 18:47:34 +01:00
|
|
|
---
|
2023-04-10 19:36:55 +01:00
|
|
|
tags: [AWS, aws-lambda]
|
2023-04-08 18:47:34 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
# AWS Lambda triggers
|
|
|
|
|
|
|
|
Here are some common trigger patterns
|
|
|
|
|
|
|
|
### API Gateway trigger
|
|
|
|
|
|
|
|
- an HTTP request is sent to AWS API Gateway
|
|
|
|
- API Gateway triggers a Lambda function to execute
|
|
|
|
|
|
|
|
### DynamoDB table change trigger
|
|
|
|
|
|
|
|
- a record in a DynamoDB table is modified
|
|
|
|
- DynamoDB triggers a lambda function to execute
|
|
|
|
|
|
|
|
### S3 trigger
|
|
|
|
|
|
|
|
- a new file is created in S3
|
|
|
|
- S3 triggers a Lambda function to execute
|
|
|
|
|
|
|
|
### SQS trigger
|
|
|
|
|
2024-02-17 11:57:44 +00:00
|
|
|
- a new message is added to an [SQS](AWS_Messaging_services.md#sqs)
|
2024-02-02 15:58:13 +00:00
|
|
|
queue
|
2023-04-08 18:47:34 +01:00
|
|
|
- SQS triggers a Lambda function to execute
|