【问题标题】:Error parsing parameter '--targets': Expected: '=', received: ''' for input: '[Key:InstanceIds]'解析参数“--targets”时出错:预期:“=”,接收到:“”用于输入:“[Key:InstanceIds]”
【发布时间】:2020-07-30 03:44:09
【问题描述】:
aws ssm send-command --document-name "arn:aws:ssm:---" --targets \'[{"Key":"InstanceIds","Values":['"$instance_id"']}]\' --parameters \'{}\' --timeout-seconds 600 --max-concurrency "50" --max-errors "0" --region us-east-1

只是试图执行这个命令,但我得到了关于的错误

Error parsing parameter '--targets': Expected: '=', received: ''' for input: '[Key:InstanceIds]'

有什么帮助吗?

【问题讨论】:

    标签: amazon-web-services amazon-ec2 boto3


    【解决方案1】:

    --targets 参数的格式错误。

    它应该被格式化为documentation中看到的以下语法。

    --targets "Key=instanceids,Values=$instance_id"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-06
      • 1970-01-01
      • 2020-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-16
      • 2020-06-12
      相关资源
      最近更新 更多