3

I would like AWS Batch to use one of my existing ECS clusters.

The problem is that when I create an unmanaged "compute environment" from the AWS Batch service, it doesn't allow me to specify an existing ECS cluster and it will automatically deploy a new ECS cluster (It doesn't let you choose). The reason why I want to associate my existing ECS cluster with the unmanaged "compute enviromnent" is because I don't want to pay for two ECS cluster when I already have one...

Any suggestions/alternatives?

1 Answer 1

1

I don't think what you want to do is possible.

I suggest you to use a managed compute environment so you don't care about cluster resources. Set the min and max CPU for the compute environment (min 0 is recommended so you don't waste many when no jobs are running). Then only set the resources needed by your jobs and batch will add compute capacity to satisfy the demand.

Your costs will be the same because batch will create an ASG(autoscaling group) and ECS cluster but it only charges you for EC2 instances.

2
  • Perhaps you could add more details and explain the abbreviation ASG
    – 030
    Nov 18, 2019 at 17:33
  • 1
    Done, thanks. ASG is autoscaling group. Nov 18, 2019 at 18:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.