How to execute commands on AWS Instance using Boto3

后端 未结 6 1436
一生所求
一生所求 2021-01-11 12:01

Can anyone tell me if we can execute Shell Commands using Boto3 on Launched AWS instance.

I read at few places about \"boto.manage.cmdshell\" but it is deprecated in

6条回答
  •  悲哀的现实
    2021-01-11 12:21

    Change

    command_id = response['Command']['CommandId']
    

    to

    command_id = context.aws_request_id
    

提交回复
热议问题