- 최신
- 최다 투표
- 가장 많은 댓글
AWS Batch does not currently support ECS Exec functionality. If you'd like this feature, I'd recommend you reach out to your AWS account team so they can inform the service team of your request.
In the meantime, if you use an EC2 compute environment, you can log into your EC2 instances and access your Batch-manged containers via the docker exec
command.
Someone who downvoted my answer, then please explain why could I actually ECS Exec into my Batch container?
Hi, this documentation shows that you can run a task with ECS Exec enabled by running run-task
command with --enable-execute-command
.
However, you need to override the command to make the task persist long enough for you to debug. For example, if your batch runs java MyMainTask
, you need to override the command to sleep infinity
and run your program manually in the execute-command session.
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 9달 전
- AWS 공식업데이트됨 7달 전
- AWS 공식업데이트됨 2년 전