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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠