AWS Fargateでより強力になったAuto Scaleingを実施してみます。 AWS公式のブログを参考に設定を実施しました。 TerraformでECS環境の構築【オートスケール編】を参考にTerraformでも設定します。 旧ECSのAutoScale コンテナインスタンス(EC2)縛りがありコレジャナイ感があります。 以下2つのAuto Scale設定が必要です。 コンテナインスタンスのAuto Scale ECS ServiceのAuto Scale FargateのAutoScale コンテナインスタンス(EC2)から解放され、ECS Cluster内でtaskを自在に配置できます。 コンテナインスタンスのAuto Scale が不要になりました。 Terraformで設定 以下で一気に作成します。 https://github.com/Thirosue/terraform