AWS CLI 명령어도 S3용량 보기쉽게 확인하는방법.
AWS 제공하는 오픈데이터 활용하기위해 해당 데이터의 용량체크가 필요했다.
s3버킷에 AWS CLI로 접근하여 용량체크진행함
--summarize : 객체 수 , 전체 크기 표시
--human-readable : 읽기 편한 형식으로 파일크기표시
PS C:\Users\snu> aws s3 ls --no-sign-request s3://greenwichhr-covidjobimpacts/
2022-11-02 13:02:49 715891 geography.csv.part_00000
2022-11-02 13:02:49 17428149 geography_industry.csv.part_00000
2022-11-02 13:02:49 105428 ghr_data_specs_covid_public.pdf
2022-11-02 13:02:49 262557 industry.csv.part_00000
2022-11-02 13:02:49 7221882 industry_job_family.csv.part_00000
2022-11-02 13:02:49 357094 job_family.csv.part_00000
2022-11-02 13:02:49 31910685 job_family_role.csv.part_00000
2022-11-02 13:02:49 10233 overall.csv.part_00000
PS C:\Users\snu> aws s3 ls --no-sign-request s3://greenwichhr-covidjobimpacts/ --summarize
2022-11-02 13:02:49 715891 geography.csv.part_00000
2022-11-02 13:02:49 17428149 geography_industry.csv.part_00000
2022-11-02 13:02:49 105428 ghr_data_specs_covid_public.pdf
2022-11-02 13:02:49 262557 industry.csv.part_00000
2022-11-02 13:02:49 7221882 industry_job_family.csv.part_00000
2022-11-02 13:02:49 357094 job_family.csv.part_00000
2022-11-02 13:02:49 31910685 job_family_role.csv.part_00000
2022-11-02 13:02:49 10233 overall.csv.part_00000
Total Objects: 8
Total Size: 58011919
PS C:\Users\snu> aws s3 ls --no-sign-request s3://greenwichhr-covidjobimpacts/ --human-readable
2022-11-02 13:02:49 699.1 KiB geography.csv.part_00000
2022-11-02 13:02:49 16.6 MiB geography_industry.csv.part_00000
2022-11-02 13:02:49 103.0 KiB ghr_data_specs_covid_public.pdf
2022-11-02 13:02:49 256.4 KiB industry.csv.part_00000
2022-11-02 13:02:49 6.9 MiB industry_job_family.csv.part_00000
2022-11-02 13:02:49 348.7 KiB job_family.csv.part_00000
2022-11-02 13:02:49 30.4 MiB job_family_role.csv.part_00000
2022-11-02 13:02:49 10.0 KiB overall.csv.part_00000
출처: <https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html>
'AWS 기타' 카테고리의 다른 글
[Redshift] OJBECT, 스키마, 데이터베이스, Defult ACL 등 권한 조회 sql (0) | 2024.10.30 |
---|