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.

gefragt vor einem Monat283 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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

AmazonECSTaskExecutionRolePolicy SecretsManagerReadWrite

Enter image description here

beantwortet vor einem Monat
profile picture
EXPERTE
A_J
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen