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.

已提问 1 个月前283 查看次数
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

已回答 1 个月前
profile picture
专家
A_J
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则