AAtsushi's Blog
Cloud

AWS Container Services

→ 日本語版を読む

AWS container services include ECS and Fargate.

That said, Fargate is actually one of the launch types within ECS, so there is a containment relationship.

ECS has two launch types: EC2 and Fargate. With EC2, you launch an EC2 instance as the host machine and run containers on top of it.

Fargate, on the other hand, allows you to launch containers in a serverless manner.

Reference: https://business.ntt-east.co.jp/content/cloudsolution/column-171.html

The general flow for setting up Fargate is:

  • Create an ECR repository
  • Push the Docker image to ECR
  • Configure various network settings
  • Create a cluster
  • Launch Fargate

Details are as follows (concisely written and easy to skim through):

AWS Fargate環境を構築してデプロイしてみる

This one also has screenshots and is easy to understand:

AWS Fargate で実行したコンテナに固定のグローバルIPアドレスを割り当てる - Qiita

With Azure Container Instances, an FQDN is provided by default, but AWS Fargate appears to use a load balancer.

For best practices, refer to the following. Storage, logs, and metrics seem to be the key areas.

AWS Fargate - Qiita

There is also an official best practices guide:

https://docs.aws.amazon.com/ja_jp/AmazonECS/latest/bestpracticesguide/bestpracticesguide.pdf