-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for S3 existing object replication field #12223
Comments
@borrell Thanks for opening the issue. As you mention, this functionality is not yet publicly available and I'm not sure how public the fact that you can get this enabled per-account via AWS support is. This will probably be hard to write an acceptance test for right now. |
Yes I was thinking about this before I raised the issue. Ultimately I think it'd be worthwhile to include:
|
@borrell Thanks for the additional info. I'll investigate what happens with an account where this feature isn't enabled. |
When I try and set |
Yes I was just trying in boto3 on an account without the option enabled, and have the following message
I'm going to do some more testing to see what the behavior is when omitting the option on an account with Existing Object Replication enabled. |
Possibly relevant, this feature now has a blog post: https://aws.amazon.com/blogs/storage/replicating-existing-objects-between-s3-buckets |
@ewbankkit Facing with same issue. |
have the same issue/requirement |
I'm seeing the same when using |
I dont know does replicating existing objects is available in AWS as I dont see this on current S3 console implementation, additionally docs are stating clearly:
Ref: |
You're right, that is exactly the case. Support need to allow-list the bucket for existing account replication; until that happens requests will fail with |
FYI, after opening a support case to request activation of |
👍 |
Also mentioned here: Can also confirm it takes a few... weeks to enable. |
Amazon S3 just launched Batch Replication: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html You will not need to open a support ticket anymore to replicate existing objects. |
We just launched S3 Batch Replication that lets you replicate existing objects. https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html |
thx, so I think this issue can be closed |
Closing this as AWS also confirmed setting existing object replication is now only available via Batch Jobs as commented here: #23803 (comment) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
S3 object replication can be enabled to replicate all objects created or modified (matching a given filter) after the replication rule is created. A support request to AWS can optionally enable S3 object replication for existing objects in an S3 bucket (that can retroactively replicate objects). In the console, this appears as a checkbox in the Object Replication Configuration screen.
Currently TF does not support this field in the S3 Replication configuration.
New or Affected Resource(s)
Potential Terraform Configuration
I propose a new block in the replication_configuration block, to match the struct that is passed to this object in the SDK:
References
https://docs.aws.amazon.com/AmazonS3/latest/API/API_ReplicationRule.html#AmazonS3-Type-ReplicationRule-ExistingObjectReplication
AWS Go SDK supports this (ExistingObjectReplication)
https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#ReplicationRule
The text was updated successfully, but these errors were encountered: