'SQS Billing when triggering lambda

SQS pricing page mentioned

Every Amazon SQS action counts as a request

SQS pricing strategy has some pricing buckets, like First 1 Million Requests/Month is Free, From 1 Million to 100 Billion Requests/Month for Standard Queue is $0.40, etc.

As per AWS doc, to trigger lambda from SQS, three SQS actions are required as given below.

  1. sqs:ReceiveMessage
  2. sqs:DeleteMessage and
  3. sqs:GetQueueAttributes.

My questions are

  1. For every lambda invocation (triggering) do all these three actions are execute?
  2. If yes, do all these actions are treated as a request?

In that case, every trigger for each 64KB payload chunk consumes 3 requests. If this understanding is wrong then what is the request count calculation for every trigger execution?

Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source