AWS CLIでInvalid JSON: No JSON object could be decoded

PHP7ベータ版でWordPressを動かしてみよう | PRESSMAN*Tech を参考にスポットインスタンスを立ち上げようとしたらこんなエラーが。

Error parsing parameter 'cli-input-json': Invalid JSON: No JSON object could be decoded JSON received: ec2_spot.json

実行したコマンドはコレ。

$ aws ec2 request-spot-instances --cli-input-json ec2_spot.json

 

・・・

そう。
file:// が抜けてたというお話orz
下のように追加したらちゃんと立ち上がった。

$ aws ec2 request-spot-instances --cli-input-json file://ec2_spot.json