Message in flight for SQS Lambda Trigger

I have SQS which triggers lambda.

  1. When i put message in SQS Queue it shows message in flight and my lambda is not able to process message.
  2. On other hand if i remove trigger , my message was available and I run test on lambda manually, it will work fine.

Did you setup permissions so the Lambda Function can read from the SQS Queue?