s3 폴더 하위 객체 메타데이터 한번에 변경하는 방법
2024-12-23 1. 명령어 S3 폴더의 하위 객체들의 메타데이터를 한 번에 수정하려면 --recursive 옵션을 사용하여 cp 명령어로 전체 폴더를 처리할 수 있습니다. 새 메타데이터를 적용하려면 --metadata-directive REPLACE를 설정해야 하며, 변경하려는 메타데이터와 함께 명령어를 실행하면 됩니다. aws s3 cp s3://test/images/imagesub/data/ s3://test/images/imagesub/data/ \ --recursive \ --metadata-directive REPLACE \ --cache-control "max-age=31536000, must-revalidate" \ --content-type "image/png" ..