How to SSH and run commands in EC2 using boto3?

前端 未结 6 1985
情深已故
情深已故 2020-12-03 05:02

I want to be able to ssh into an EC2 instance, and run some shell commands in it, like this.

How do I do it in boto3?

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 05:43

    use boto3 to discover instances and fabric to run commands on the instances

提交回复
热议问题