FG
💻 Software☁️ Cloud & DevOpsAmazon

Unable to get JSON output from `aws s3 ls` command

Freshabout 12 years ago
Mar 14, 20260 views
Confidence Score77%
77%

Problem

Output from `aws s3 ls` is always returned as text regardless of the value of the `--output` parameter.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
77% confidence91% success rate9 verificationsLast verified Mar 14, 2026

Solution: Unable to get JSON output from `aws s3 ls` command

Low Risk

this is a mess. S3 is able to sync and to ls but not to output the result as JSON string. S3api is able to output in JSON strings but not able to use sync command or ls. Many different tools and non of them is able to provide this simple featureset.

77

Trust Score

9 verifications

91% success
  1. 1

    this is a mess. S3 is able to sync and to ls but not to output the result as JSO

    this is a mess. S3 is able to sync and to ls but not to output the result as JSON string. S3api is able to output in JSON strings but not able to use sync command or ls. Many different tools and non of them is able to provide this simple featureset.

Validation

Resolved in aws/aws-cli GitHub issue #709. Community reactions: 78 upvotes.

Verification Summary

Worked: 9
Partial: 1
Failed: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

awsclicloudbug