A process handles an S3 event only a few times per day.
Avoid managing a continuously running server and pay for the execution used.
Which service is most appropriate?
Use AWS Lambda for event-driven execution so compute resources are allocated for invocations instead of running an EC2 instance continuously.
Detailed explanation
Glacier is archival storage and is not a function execution environment.
Glacier is archival storage and is not a function execution environment.
The instance incurs compute charges even while the low-frequency workload is idle.
The instance incurs compute charges even while the low-frequency workload is idle.
IAM grants permissions but does not execute application code.
IAM grants permissions but does not execute application code.
Lambda runs code in response to events without requiring a continuously running customer-managed server.
Lambda runs code in response to events without requiring a continuously running customer-managed server.
Check official documentation
Compare the following points with the official documentation.
AWS Lambdaのイベントソースと料金モデルの公式説明を確認する。
What to confirm
実行頻度と計算サービスの料金モデルを対応付けられる。
Key points
- AWS Lambda
- Event-driven execution
- Pay per use
Notes
- Environment: AWS公式Lambdaドキュメントの確認
- Confirm current AWS pricing and service behavior in the official documentation.
Foundation review
No idle server
Lambda removes the need to keep an EC2 process running between the few daily events.
Execution boundary
IAM authorizes the function's actions, but the function service performs the computation.