3

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?

Deepak Gupta
  • 387
  • 2
  • 17
Nathan
  • 7,099
  • 14
  • 61
  • 125
  • 1
    did you ever find this out? i seems that you need to use ssm (SEssion manager) but i couldnt figure out how to get the output or stablish an interactive terminal. – Chop Labalagun Jul 28 '21 at 21:19

0 Answers0