Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS s3api json formatting error: Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 1 column 1 (char 0)

Tags:

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:

Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 1 column 1 (char 0)
JSON received: <my_json.json>

{"Bucket": "<bucket_name>","Delimiter": "","EncodingType": "","Marker": "","MaxKeys": 0,"Prefix": "<prefix_name>"}
like image 601
horatio1701d Avatar asked Jan 29 '16 20:01

horatio1701d


1 Answers

Instead of :

my_json.json

You have to use file:// before the json name :

file://my_json.json
like image 160
sivabudh Avatar answered Sep 20 '22 07:09

sivabudh