AWS Fargate features

AWS Fargate features

AWS Fargate is one of the most interesting services of AWS is Fargate. I never imagined running containers with such great simplicity. Fargate is a fully managed Docker hosting ecosystem by AWS.

What is Fargate?

  • You don’t need to worry about managing and scaling clusters.
  • 24/7 uptime! Yes, think of it like Lamdas. Once the containers are running it will run without any need to provision or manage the cluster.
  • You can also schedule containers.
  • AWS maintains the availability of the underlying infrascture. You just create the container and push it. The rest is managed by AWS.
  • No more server type. One of the most time-consuming factors in EC2 is selecting the appropriate server type. With Fargate you just need to select the amount of RAM and CPU the task requires.

Is it expensive?

Yes, Fargate is expensive but in the long term, it turns out to be cheaper. The time you would need to invest in managing the clusters will be history. The only thing you would think about is just pushing the containers. Fargate pricing depends on the number of vCPU and RAM for a single task.

What is a Fargate task?

A task includes information about the Docker container. A task can include multiple containers. In order to use Fargate, we have to create a task which includes the Docker image URL, CPU, memory and more details.

example:

  • The networking mode of the Docker.
  • logging configuration.
  • the command that should run when the task is started.
  • IAM Role of the task. <– this is important for example if the task is going to access SSM you would need to add the policy to the role.

The task size is important as it dictates the pricing fee.