How to handle if there is a space in the bucket name when checking the capacity of AWS s3

Asked 1 weeks ago, Updated 1 weeks ago, 1 views

To check the capacity of the S3 using AWS commands, follow these steps:

Use the summarize option to finally inform you of the number of objects on the s3 path and the total size

aws3 ls3://[Bucket]/Directory --summarize

But if there's a space in the [Bucket] part, e.g. 137. ABC lama

aws3 ls3://137.Hanada llama/directory --summarize

Lower face

unknown option: 137. Hanada, Lamar  

This is how the error occurs.

What should I do?

aws

2022-09-20 11:34

1 Answers

It's working if you put it in quotation marks Thank you.


2022-09-20 11:34

If you have any answers or tips


© 2022 pinfo. All rights reserved.