Skip to content

Instantly share code, notes, and snippets.

@yohangdev
Created February 19, 2024 16:40
Show Gist options
  • Save yohangdev/a6dcf0f270dde53428e98706aa8f5913 to your computer and use it in GitHub Desktop.
Save yohangdev/a6dcf0f270dde53428e98706aa8f5913 to your computer and use it in GitHub Desktop.
AWS S3 Bulk Update Metadata using Command Line (CLI)
aws s3 cp \
s3://bucket/path/ \
s3://bucket/path/ \
--exclude '*' \
--include '*.png' \
--no-guess-mime-type \
--content-type="image/png" \
--metadata-directive="REPLACE" \
--recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment