I am trying to connect to a container using "Amazon ECS Exec", in this way:
![Enter image description here](/media/postImages/original/IMJ-WSxstFTdmsFpFtP4qIdA)
but produce this error:
![Enter image description here](/media/postImages/original/IMrviT290MR9-HhGjyg4_Cjw)
I have the correct role associate to the service in the Task Definition
![Enter image description here](/media/postImages/original/IMhOhnqrAHQ9Kp0vfQ8j6JDw)
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](/media/postImages/original/IMiG-r9h79S9aDudzsOgJs2w)
And my service has " "enableExecuteCommand": true "
![Enter image description here](/media/postImages/original/IMvfL3BCjRSo213quIlFnBKg)
The above using
![Enter image description here](/media/postImages/original/IM9z7ilyRgTqehOpF4FOtyxg)
My task definition has added the following JSON snippet under containerDefinitions to enable ‘initProcessEnabled’:
![Enter image description here](/media/postImages/original/IMnfxfBpfCQVW3K1nWsb9mfA)
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.