Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws s3 --quiet should not suppress errors #2848

Closed
tomasaschan opened this issue Sep 22, 2017 · 4 comments
Closed

aws s3 --quiet should not suppress errors #2848

tomasaschan opened this issue Sep 22, 2017 · 4 comments

Comments

@tomasaschan
Copy link

tomasaschan commented Sep 22, 2017

This command runs silently:

$ aws s3 cp foo.zip s3://bar-bucket/foo.zip --quiet
$

while this one doesn't:

$ aws s3 cp foo.zip s3://bar-bucket/foo.zip
upload failed: foo.zip to s3://bar-bucket/foo.zip An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access Denied
$

The only difference is the --quiet option, which I use to suppress undesired progress output (related to #519?) when using this in a script, but it's obviously quite unhelpful that the output about errors is suppressed - it took me quite some troubleshooting to realize this is why things that happened after, relying on this upload, did not work.

@cwgem
Copy link
Contributor

cwgem commented Sep 22, 2017

Given your use case --only-show-errors might work better for you:

--only-show-errors (boolean) Only errors and warnings are displayed. All other output is suppressed

@tomasaschan
Copy link
Author

@cwgem thanks, that seems to be exactly what i'm looking for!

@abdennour
Copy link

As per today, Unknown options: --only-show-errors

@dennisvang
Copy link

there's also --no-progress:

File transfer progress is not displayed. This flag is only applied when the quiet and only-show-errors flags are not provided.

see docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants