Fargate price calculation check

Hi all, sorry if I’m way off. I’m new and want some validation of my calculations and maybe learn something new.

Aim is to host a container, 1 running instance, always on, using ECS Fargate.

All prices below are in AUD for Syndey.

2 vCPU and 4 GB of ram. I’m assuming 730 hours in a month. This should cost $87/month?

I’ll be hosting the docker image in ECR to spin-up the container instance. And I’m assuming I need to leave it there for Fargate to auto-recover in case the instance dies. Also I’m going with assumption that 10GB ECR storage and 10GB ECR data transfer per month will be used. This should cost about $2/month

Fargate container instance itself with 1 free elastic IP, would probably use about 50GB of bandwidth, which should cost about $6/month?

All in all: $95/month

Have I have missed something?

Looks good. Note that your prices are in USD, not AUD as you’ve perhaps assumed.

I’m in the US, so the prices I’m seeing on the pricing page are all in USD, even for Sidney.

As of Jan 19 10:20PM EST they are $0.04856 per vCPU, and $0.00532 per GB. Monthly it would be (0.04856*2+0.00532*4)*730 = $86.432. But that’s in USD, so in AUD it would be $125/month, which is far off from your result.

One of us misread or miscalculated. Now you got me curious. :slight_smile:

By the way have you looked at the Fargate Savings Plans? For 1 always-on instance, if you can commit to 1 year all up front payment, you’ll be able to save 22% compared to on-demand.

If I have an application that only needs to run for a few days a quarter …can I still use fargate to manage it

Current application is dotnet onprem

Thinking of containerizing it but dont want the op overhead of managing containers

Yes.

I think a useful example for you here would be to say we run our staging servers through fargate (and prod). They sit idle until a new build is in the pipeline then they spin up and get it done before shutting down. There is no cost while they are shut down! It’s fantastic for this sort of use case.

You’ll also likely need an ALB, which is another ten bucks a month or so.

If you don’t mind task interruption, you should use fargate spot for even more savings.

https://aws.amazon.com/blogs/aws/aws-fargate-spot-now-generally-available/

I haven’t seen any interruptions yet on my end.

As others have pointed out, all prices on the AWS site — even if you’re looking at non-US region pricing — are in USD so you’ll need to convert to AUD. They’re also exclusive of GST, so you’ll need to add 10% for that.

Whats the duty cycle like? Fargate supports running containers on a cron like schedule directly.

Yeah don’t bother with that then, build your container with the entrypoint for your task, and then spin the container up using fargate scheduling - that will cut your costs by like 50 times.