Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
AWS S3 copy/paste does not copy metadata

Using the Amazon web interface, it is possible to copy an S3 object from one bucket to another.

enter image description here

However, the pasted object does not have the metadata of the original. How can the metadata be pasted at the same time?

I'm guessing that the CLI can do it, but I can't figure out how.

Note, the metadata must be created with the object so it is available in the lambda function triggered on the S3 PUT.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

So I have figured out how to do it via the CLI.

aws s3 cp s3://<source bucket>/<filename> s3://<destination bucket>

The documentation states

--metadata-directive (string) Specifies whether the metadata is copied from the source object or replaced with metadata provided when copying S3 objects. ... Valid values are COPY and REPLACE. If this parameter is not specified, COPY will be used by default.

(My emphasis.)

All quite easy really. Very strange that the web interface does not do the same.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!