AWS Batch: How to enable ECS Exec?

0

How do I enable the ECS Exec feature for an AWS Batch job. Batch handles creating the ECS task, but I don't see any option to run the task with ECS Exec enabled.

Anish
質問済み 8ヶ月前617ビュー
3回答
0

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.

AWS
エキスパート
回答済み 8ヶ月前
0

Someone who downvoted my answer, then please explain why could I actually ECS Exec into my Batch container?

Enter image description here

profile picture
HS
回答済み 8ヶ月前
-1

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.

profile picture
HS
回答済み 8ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ