ECR or EFS cost for Lambda

0

I am building a lambda function that needs to use 1.2GB of data file, and am considering two possibilities:

  1. build a <50MB lambda function without the data file, put the data file into an EFS and attached it to the lambda, or
  2. pack everything into an ECR image

while Lambda's pricing page says that data transfer with EFS and ECR are free, it does also mention it could incur costs in other services. EFS (Elastic throughput) has a read access cost of about $0.03, and ECR has a data transfer out cost of about $0.09 per GB. are these costs going to be incurred when i read them from a Lambda?

1 Answer
0

Hi,

For EFS pricing, as mentioned here that "You pay for read and write access using Elastic Throughput" this price for read write access activity not for data transfer.

For ECR pricing, as mentioned here "Amazon Elastic Container Service (Amazon ECS) on Amazon EC2 or AWS Fargate to pull 1 TB per month of images within the same region so they are not charged for data transfer out"

For data transfer charges, it depends on many dimensions e.g. AZ, Region, Serverless etc. I suggest you to check the blogs below to understand how it may apply to your use-case.

https://aws.amazon.com/blogs/apn/aws-data-transfer-charges-for-server-and-serverless-architectures/ https://aws.amazon.com/blogs/architecture/overview-of-data-transfer-costs-for-common-architectures/

Thanks

profile pictureAWS
Rama
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions