Search code examples
amazon-web-servicesterraformamazon-ecsterraform-provider-awsaws-fargate

Do I need to setup aws_autoscaling_group in fargate?


I build my containers with fargate and terraform.

If I want to scale when the cpu or the memory not enough, do I need to setup aws_autoscaling_group in terraform? or aws can automatic raise up another containers?


Solution

  • Without setting this AWS has no way of knowing that the service should autoscale or which conditions it should scale on.

    Instead it will just use the desired_count value instead (as a static value).

    If you create the auto scaling resource this will replace this value.