No connection using Amazon ECS Exec

0

I am trying to connect to a container using "Amazon ECS Exec", in this way:

Enter image description here

but produce this error:

Enter image description here

I have the correct role associate to the service in the Task Definition

Enter image description here

The role has an inline policy using specific JSON values for resources based on my AWS region, account ID, and cluster name.

Enter image description here

And my service has " "enableExecuteCommand": true "

Enter image description here

The above using

Enter image description here

My task definition has added the following JSON snippet under containerDefinitions to enable ‘initProcessEnabled’:

Enter image description here

But despite that, I always get the error at the beginning, I have no connection problems if it can identify that the cluster, the service, the task, and the container with the names and ARN are fine.

What may be the error, thanks.

質問済み 2ヶ月前285ビュー
1回答
0
承認された回答

The problem was a mistake in the role created, I need to add too....now it is working

AmazonECSTaskExecutionRolePolicy SecretsManagerReadWrite

Enter image description here

回答済み 2ヶ月前
profile picture
エキスパート
A_J
レビュー済み 2ヶ月前

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

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

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

関連するコンテンツ