Lambda Inactive state

Recently, I have got 500 HTTP response from my API Gateway endpoint integrated with lambda function. I found integration error in logs Lambda invocation failed with status: 409. Lambda request id: f272af2a-2631-48b8-b0b2-3f5e1193a393 Execution failed due to configuration error: Lambda is initializing your function.It will be ready to invoke once your function state becomes ACTIV It … Read more

SQS access policy which denies receiving messages except one lambda

Yesterday, I had a task to setup SQS access policy to allow reading messages from queue only by one lambda. Another part of this task was to allow sending messages only by Api Gateway. I tried following access policies with Deny + Principal to restrict SQS:ReceiveMessage action only to my lambda. Or Deny + NotPrincipal … Read more

FUNCTION_ERROR_INIT_FAILURE error while deploying AWS Lamba

Today I got an error Provisioned Concurrency configuration failed to be applied. Reason: FUNCTION_ERROR_INIT_FAILURE in CloudFormation while deploying stack with Lambda And that’s all. No more details about the root cause. My SAM file configures lambda with Provisioned Concurrency. After switching off Provisioned Concurrency my stack was successfully deployed but first lambda invocation finished with exception. … Read more