boto3: How to receive output after calling ecs execute_command

Viewed 245

I want to send commands to a ecs/FARGATE container using python/boto3. I can successfully open a session using execute_command.

But how can I get output of the command? And wait until its done?

I find a a lot about the aws cli and the session-manager-plugin. So one way would be to run the aws cli from python. But is there also a way to get the output of the command from native python?

0 Answers
Related