Skip to content
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 separated resource for configuring S3 bucket replication rules #1704

Closed
fishpen0 opened this issue Sep 20, 2017 · 4 comments
Closed

Add separated resource for configuring S3 bucket replication rules #1704

fishpen0 opened this issue Sep 20, 2017 · 4 comments
Labels
new-resource Introduces a new resource. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@fishpen0
Copy link

Add a separate resource aws_s3_bucket_replication_rule for supporting replication rules (http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html)

Current situation

Replication rules can be defined only inline in the aws_s3_bucket resource, but not as external resources than can be attached to the S3 bucket afterwards

Use Case

I have a module for generating S3 buckets from a dynamic list of regions. The first bucket in the list should replicate to every other region's bucket. Depending on the use case for the module, the list may only contain one region. This would be easier to accomplish if the replication rule were a separate entity that I can apply a count to.

This is similar to the request laid out in #283

@radeksimko radeksimko added the new-resource Introduces a new resource. label Oct 23, 2017
@radeksimko radeksimko added the service/s3 Issues and PRs that pertain to the s3 service. label Jan 28, 2018
@jonjohnston
Copy link

I agree that this should be split out. My conundrum is I have 2 buckets that I want to replicate to each other. I cannot implement this in terraform because bucket A cannot be created with replication if bucket B doesn't exist and bucket B can't be created if bucket A doesn't exist. Having this split out can allow me to create bucket B without replication policy on the bucket, create bucket A with replication rule, then add replication rule to bucket B. Is there any progress on this?

@dtserekhman-starz
Copy link

Any update on this issue? Sounds like very frequent use case (for s3 buckets' bidirectional replication), and looks like no solution has been made available yet? I'm running into this now too. Big showstopper!

@bflad bflad added this to the v4.0.0 milestone Jul 1, 2020
@anGie44 anGie44 modified the milestones: v4.0.0, v3.66.0 Jan 5, 2022
@anGie44
Copy link
Contributor

anGie44 commented Jan 5, 2022

Hi @fishpen0 and those following this issue, I believe this should be addressed with the addition of the aws_s3_bucket_replication_configuration resource added in v3.66.0 of the provider (PR: #20777) so I'm going to close this issue but if you believe it's been done by mistake, please reach out!

@github-actions
Copy link

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-resource Introduces a new resource. service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
Development

No branches or pull requests

6 participants