티스토리 뷰

공부

[aws] s3 bucket list

승가비 2023. 1. 7. 14:51
728x90
aws s3api list-buckets --query "Buckets[].Name" |
  jq -r ".[]" |
    while read bucket ; do
       echo ${bucket}
    done

https://docs.aws.amazon.com/cli/latest/reference/s3api/list-buckets.html

 

list-buckets — AWS CLI 1.27.45 Command Reference

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1). AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. F

docs.aws.amazon.com

 

728x90

'공부' 카테고리의 다른 글

[aws] s3 lifecycle  (0) 2023.01.07
[aws] s3 mkdir  (0) 2023.01.07
[airflow] `(reached max retries: 4): Rate exceeded`  (0) 2023.01.07
[aws] s3 delete files  (0) 2023.01.06
[sh] cp all files (add hidden files)  (0) 2023.01.05
댓글