Fargate like this:
aws ecs execute-command --cluster my-cluster --task task_id --container app --command bash --interactive
An error says:
An error occurred (InvalidParameterException) when calling the ExecuteCommand operation: The execute command failed because execute command was not enabled when the task was run or the execute command agent isn’t running. Wait and try again or run a new task with execute command enabled and try again.
I created a policy based on this tutorial:
https://dev.to/aws-builders/how-to-run-a-shell-on-ecs-fargate-containers-eo1
Still not working. Do you have a clue on that?
did you do this? Install Session Manager Plugin
No, I can do ssm to all EC2s Do I need to install SessionManager plugin?
yes. you need to install the plugin into your laptop/PC AWS CLI
When I try to run this command on a server, an error says: SessionManagerPlugin is not found. Please refer to SessionManager Documentation here: http://docs.aws.amazon.com/console/systems-manager/session-manager-plugin-not-found But on my macbook I don't get this error, Still you think it's about Session manager pluging?
which server? why you run it inside a server? the purpose of the plugin is for your own terminal
On an amazon linux server only for test purpose
Have you installed the SessionManagerPlugin on that server?
did you setup AWS CLI v2 properly in this server?
Amazon linux already has it
how do you verify?
I can run lots of aws commands on that server, but forget about the server, what to do for my mac?
did you follow this guide? https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html
Обсуждают сегодня