Search code examples
amazon-web-servicesaws-lambdaamazon-ses

What would be the pricing for using Amazon SES from a lambda function?


I am configuring Amazon SES to send emails, through a lambda function. I am trying to understand the pricing model for doing this. As per the AWS docs, the pricing is as follows:

Sending email from an application hosted in Amazon EC2
$0 for the first 62,000 emails you send each month, and $0.10 for every 1,000 emails you send after that.

Sending email from an email client or other software package
$0.10 for every 1,000 emails you send.

Where do lambda functions fit into this pricing scenario? While I do understand AWS would host lambda functions on some variant of a virtual instance, will the pricing model of an EC2 instance apply while invoking SES through lambdas as well?

Thanks in advance!


Solution

  • From the docs

    With AWS Lambda, you pay only for what you use. You are charged based on the number of requests for your functions and the duration, the time it takes for your code to execute.

    So you would be charged based on the execution time of your Lambda (will likely be milliseconds per call).

    will the pricing model of an EC2 instance apply while invoking SES through lambdas as well?

    It seems like there is some confusion regarding this issue. The same question is addressed here. It's unclear but it seems like it will be cheaper to run on Lambda than EC2.