Skip to content

ExistingObjectReplication param in s3-client putBucketReplication not working? #5244

Answered by altinukshini
altinukshini asked this question in Q&A
Discussion options

You must be logged in to vote

The documentation points to a parameter "ExistingObjectReplication" that is legacy.
I had to use the S3 Control to create a job for this. See here: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3Control.html#createJob-property

Example:

async function createReplicationJob(accountId, s3Control, destinationBucketName, destinationRoleARN) {
    const params = {
        AccountId: accountId,
        Operation: {
            S3ReplicateObject: {},
        },
        Priority: 1,
        Report: {
            Enabled: false,
        },
        RoleArn: destinationRoleARN,
        ConfirmationRequired: false,
        ManifestGenerator: {
            S3JobManifestGenerator: {
          …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by altinukshini
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant