3 Answers
- Newest
- Most votes
- Most comments
0
I think this message is a message that could not be started due to insufficient capacity of physical resources (AWS side) in the region used by Lambda.
Similar messages often appear on EC2, so perhaps it is a lack of resources on the AWS side.
If it is a temporary resource shortage, it will be resolved by re-running the program after the resource shortage is cleared.
Or use a different region, etc.
0
Please check Service Health dashboard to verify the status of Lambda service in that region. To avoid similar issues you can consider one of these methods (depending on the use case):
- Redesigning the architecture to use Lambda in multiple regions and not a single one (Multi-region approach)
- Based on the use case and how the Lambda functions are called, you can devise a queue system such as SQS before executing Lambda to ensure that even if one execution fails, the message/event is not lost
- If the execution cannot wait and you need to ensure correct execution at all times, you can consider using Lambda Provisioned Concurrency (extra cost) that allocates guaranteed execution environments
- Revisiting how you are calling each Lambda function, looking at the possibility of reducing the call rate by grouping messages/events together and doing a batch processing.
0
Similarly, EC2 can experience the same issue: https://repost.aws/knowledge-center/ec2-insufficient-capacity-errors.
Typically you need to wait or switch region.
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago