- Newest
- Most votes
- Most comments
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:
-
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
-
Calculate the invocation cost:
- Assume 1 TPS for 24/7 (2,592,000 invocations per month)
- Multiply by the per-request price
-
Calculate the duration cost:
- GB-seconds: (2,592,000 * 4 seconds * 0.5 GB)
- Multiply by the duration price per GB-second
-
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:
-
Calculate the vCPU cost:
- 1 vCPU * price per vCPU-second * number of seconds in a month
-
Calculate the memory cost:
- 4 GB * price per GB-second * number of seconds in a month
-
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
Relevant content
asked a year ago
