본문 바로가기
AWS

s3 bucket list 추출방법

by freesunny 2019. 5. 22.
$ python -m aws_list_all query --service s3
+
+++ s3 us-east-1 ListBuckets Buckets

$ ls -l
-rw-rw-r-- 1 kerygma kerygma   7089 May 22 11:19 s3_ListBuckets_us-east-1.json

$ cat s3_ListBuckets_us-east-1.json | jq '.response.Buckets[] | .Name' | cut -d\" -f2
BucketName1
BucketName2
....