Похожие чаты

Guys I want to exec into a container running on

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?

14 ответов

23 просмотра

did you do this? Install Session Manager Plugin

Ehsan- Автор вопроса
Sharuzzaman Ahmat Raslan
did you do this? Install Session Manager Plugin

No, I can do ssm to all EC2s Do I need to install SessionManager plugin?

Ehsan
No, I can do ssm to all EC2s Do I need to install ...

yes. you need to install the plugin into your laptop/PC AWS CLI

Ehsan- Автор вопроса
Sharuzzaman Ahmat Raslan
yes. you need to install the plugin into your lapt...

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?

Ehsan
When I try to run this command on a server, an err...

which server? why you run it inside a server? the purpose of the plugin is for your own terminal

Ehsan- Автор вопроса
Ehsan
On an amazon linux server only for test purpose

Have you installed the SessionManagerPlugin on that server?

Ehsan
On an amazon linux server only for test purpose

did you setup AWS CLI v2 properly in this server?

Ehsan- Автор вопроса
Ehsan- Автор вопроса
Ehsan- Автор вопроса
Sharuzzaman Ahmat Raslan
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?

Ehsan
I can run lots of aws commands on that server, but...

did you follow this guide? https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html

Похожие вопросы

Обсуждают сегодня

Какой-то там пердун в 90-х решил, что есть какая-то разная типизация. Кого вообще это волнует?
КТ315
49
Hi. Do we have a raid bot? Why nobody doing raids on X? Even RH mentioned this and nobody paying attention...whats the channel for hex memes? If mods cant run raids just insta...
H
31
Подскажите, а есть vault lite или ченить такое?) А то нужен вольт для похода в вольт, но весит он ~500 мб) как-то многовато для парочки запросов ))
Alexandr Orloff
17
блеать, почему так?? где в роутере это исправляется?
Арсен Маньяков 🇦🇲
16
void terminal_scroll() { memmove(terminal_buffer, terminal_buffer + VGA_WIDTH, buffer_size - VGA_WIDTH); memset(terminal_buffer + buffer_size - VGA_WIDTH, 0, VGA_WIDTH); ...
Егор
47
🌊 Ocean Nodes Dashboard Update 🚀 Hey, Oceaners! First off, a massive round of applause 👏to all of you for the amazing engagement since we launched Ocean Nodes. In just a few ...
KreigDK | Never DM first🌊
3
Всем привет! Подскажите, пожалуйста, в чем ошибка? Настраиваю подключение к MySQL. Либы лежат рядом с exe. Все как по "учебнику"
Евгений
16
А можете как-то проверить меня по знаниям по ассемблеру?
A A
132
Здравствуйте! У меня появилась возможность купить книгу "Изучай Haskell во имя добра!". Но я где-то слышал, что эта книга устарела. Насколько это правда??
E
22
люди, которые используют flameshot, к вам вопрос. Можно-ли поставить хоткей на создание скриншота? В программе есть отдел "горячие клавиши", но там все для редактирования, скр...
ThunDer104
11
Карта сайта