SSM send command to EC2 instance Failed

后端 未结 2 2080
清歌不尽
清歌不尽 2021-02-07 22:18

I\'m trying to use boto3 to run ssh commands on EC2 instances. I read this guide: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-remote-commands.html and I d

2条回答
  •  孤城傲影
    2021-02-07 23:03

    This can happen when you don't have SSM agent installed on the instance you're trying to access. For a list of instances where you can run SSM commands, run:

    aws ssm describe-instance-information --output text
    

    From there, you can grab an instance ID and then run the send_command command with that instance.

提交回复
热议问题