I have SQS which triggers lambda.
When i put message in SQS Queue it shows message in flight and my lambda is not able to process message.
My Lambda has below permissions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"sqs:DeleteMessage",
"sqs:GetQueueUrl",
"sqs:ListDeadLetterSourceQueues",
"sqs:DeleteMessageBatch",
"sqs:ReceiveMessage",
"sqs:GetQueueAttributes",
"sqs:ListQueueTags"
],
"Resource": "*"
}
]
}
ALso it has below permissions
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "logs:CreateLogGroup",
"Resource": "arn:aws:logs:us-east-1:5722*****:*"
},
{
"Effect": "Allow",
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:us-east-1:5722****:log-group:/aws/lambda/815223_Test:*"
]
}
]
}
When i attach "Administator access" permission permission it works and lambda gets triggered. I am not sure which permission i am missging here.My SQS queue is un-encrypted.