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.

demandé il y a 2 mois285 vues
1 réponse
0
Réponse acceptée

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

AmazonECSTaskExecutionRolePolicy SecretsManagerReadWrite

Enter image description here

répondu il y a 2 mois
profile picture
EXPERT
A_J
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions