はじめに こんにちは、yasujunです。 Amazon ECSというコンテナ管理サービスを使ってWebコンテナのデプロイを試してみました。また、ECSの起動オプションであるEC2とECS(Fargate)について解説します。さらには、ECS(Fargate)とサーバー管理不要とコンテナを使ったデプロイ可能な共通点を持つLambdaの説明と、その使い分けについて解説します。 ECS(EC2)とは? EC2インスタンスを用いたDockerコンテナでデプロイする仕組みです。 EC2で起動するため、OSのメンテナンスは自身で受け持つ必要がありますが、EC2に接続できるのとコンテナにbashが使えるという利点があります。 また、OSのメンテナンス以外にもDockerイメージ内のライブラリの脆弱性はこちら側で管理するため、気を付ける必要があります。 ECS(Fargate)とは? AWSが管理するホ