Skip to content

Require guidance on calculating cost for Lambda with provisioned concurrency and ECS Fargate

0

Hi all, my team is planning to setup infra with either Lambda or ECS Fargate with Coral Framework. Configs are mentioned below:

  1. Fargate: 4GIB, 2VCPU, ephermeral storage 20GB
  2. Lambda: 1 TPS, 512 MB, 4s processing time, 3GB ephemeral storage, concurrency: 2

We referred 2024 and 2025 IMR Rate card but not very sure of the discount % for internal pricing, could you guide us with that / direct us to the right sources.

asked a year ago302 views

1 Answer
0

I can provide guidance on calculating costs for Lambda with provisioned concurrency and ECS Fargate based on the configurations you've mentioned, but I cannot provide information on internal AWS pricing or discounts. Here's how you can approach the cost calculation for each service:

For Lambda with provisioned concurrency:

  1. Calculate the provisioned concurrency cost:

    • Provisioned concurrency: 2
    • Memory: 512 MB
    • Time: Let's assume 24/7 availability (720 hours per month)
    • Calculate GB-seconds: (2 * 0.5 GB * 720 hours * 3600 seconds)
    • Multiply by the provisioned concurrency per GB-second rate
  2. Calculate the invocation cost:

    • Assume 1 TPS for 24/7 (2,592,000 invocations per month)
    • Multiply by the per-request price
  3. Calculate the duration cost:

    • GB-seconds: (2,592,000 * 4 seconds * 0.5 GB)
    • Multiply by the duration price per GB-second
  4. Add the costs for ephemeral storage:

    • 3 GB - 512 MB (included) = 2.5 GB additional
    • Calculate GB-seconds and multiply by the ephemeral storage price

For ECS Fargate:

  1. Calculate the vCPU cost:

    • 1 vCPU * price per vCPU-second * number of seconds in a month
  2. Calculate the memory cost:

    • 4 GB * price per GB-second * number of seconds in a month
  3. Ephemeral storage is included in the base price for up to 20 GB, so no additional cost.

To get the most accurate pricing, you should use the AWS Pricing Calculator or consult with an AWS representative for the most up-to-date rates and any applicable discounts. Remember that actual costs may vary based on usage patterns and other factors.

For internal pricing or specific discount percentages, you would need to consult with your organization's AWS account manager or financial team, as these are not publicly available and may be subject to specific agreements between AWS and your company.

Sources
Serverless Computing – AWS Lambda Pricing – Amazon Web Services
Double charge for provisioned lambdas | AWS re:Post
Serverless Compute Engine–AWS Fargate Pricing–Amazon Web Services

answered a year 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.