Question:
Not sure what I’m getting wrong with my json format. Just trying to test out aws cli and run aws s3api list-objects --cli-input-json <json_file>.json --profile <profile_name>
where <my_json>
is below but getting:
1 2 3 4 5 |
Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 1 column 1 (char 0) JSON received: {"Bucket": " |
Answer:
Instead of :
1 2 |
my_json.json |
You have to use
file://
before the json name :
1 2 |
file://my_json.json |