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?
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.