capabilities.work

Copy Object Between Keys

A 3-step recipe with Amazon S3. We can help you get access.

Recipe · 3 steps

Copy Object Between Keys

Server-side copy an object from a source key to a destination key.

  1. Confirm the source object exists before attempting the server-side copy.
  2. Perform the server-side copy to the destination key using the x-amz-copy-source header.
  3. Confirm the destination object now exists, completing the copy verification.
What you'll need to have ready
  • sourceBucket: The bucket holding the source object.
  • sourceKey: The key of the source object to copy.
  • destinationBucket: The bucket the copy will be written to.
  • destinationKey: The key the copy will be written under.
  • copySource: The x-amz-copy-source value, e.g. /sourcebucket/sourcekey (URL-encoded path).
For your developer

Arazzo workflow amazon-s3:copy-object, 3 operations: HeadObject → CopyObject → HeadObject. Specs on APIs.io.