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

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:

Answer:

Instead of :


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

Leave a Reply