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

New Resource: aws_s3_bucket_replication #972

Closed
wants to merge 1 commit into from

Conversation

elbuo8
Copy link
Contributor

@elbuo8 elbuo8 commented Jun 26, 2017

$ make testacc TESTARGS='-run=TestAccAWSS3BucketReplication'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run=TestAccAWSS3BucketReplication -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAWSS3BucketReplication_basic
--- PASS: TestAccAWSS3BucketReplication_basic (93.24s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	93.278s

Reason: If trying to create two-way cross replication buckets, you come into a dependency cycle. This additionally allows replication to be a conditional.

@radeksimko radeksimko added the new-resource Introduces a new resource. label Jul 3, 2017
@radeksimko radeksimko added the size/XL Managed by automation to categorize the size of a PR. label Nov 15, 2017
@radeksimko radeksimko added the service/s3 Issues and PRs that pertain to the s3 service. label Jan 12, 2018
@elbuo8 elbuo8 force-pushed the aws_s3_bucket_replication branch from bc889ef to 58e493c Compare March 4, 2018 16:58
@ghost ghost added the size/XL Managed by automation to categorize the size of a PR. label Mar 4, 2018
@elbuo8 elbuo8 force-pushed the aws_s3_bucket_replication branch from 7924908 to 7882020 Compare March 4, 2018 22:49
@ghost ghost added the size/XL Managed by automation to categorize the size of a PR. label Mar 4, 2018
@elbuo8 elbuo8 force-pushed the aws_s3_bucket_replication branch from 7882020 to c737957 Compare March 4, 2018 23:24
@ghost ghost added the size/XL Managed by automation to categorize the size of a PR. label Mar 4, 2018
@elbuo8 elbuo8 force-pushed the aws_s3_bucket_replication branch from 484f56b to eea0984 Compare March 5, 2018 01:01
@ghost ghost added the size/XL Managed by automation to categorize the size of a PR. label Mar 5, 2018
@elbuo8
Copy link
Contributor Author

elbuo8 commented Mar 5, 2018

@radeksimko @bflad @mpilar would love a review 🙇

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run=TestAccAWSS3Bucket -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAWSS3BucketNotification_importBasic
--- PASS: TestAccAWSS3BucketNotification_importBasic (158.86s)
=== RUN   TestAccAWSS3Bucket_importBasic
--- PASS: TestAccAWSS3Bucket_importBasic (46.98s)
=== RUN   TestAccAWSS3Bucket_importWithPolicy
--- PASS: TestAccAWSS3Bucket_importWithPolicy (51.89s)
=== RUN   TestAccAWSS3BucketMetric_basic
--- PASS: TestAccAWSS3BucketMetric_basic (47.43s)
=== RUN   TestAccAWSS3BucketMetric_WithFilterPrefix
--- PASS: TestAccAWSS3BucketMetric_WithFilterPrefix (76.09s)
=== RUN   TestAccAWSS3BucketMetric_WithFilterPrefixAndMultipleTags
--- PASS: TestAccAWSS3BucketMetric_WithFilterPrefixAndMultipleTags (76.15s)
=== RUN   TestAccAWSS3BucketMetric_WithFilterPrefixAndSingleTag
--- PASS: TestAccAWSS3BucketMetric_WithFilterPrefixAndSingleTag (73.49s)
=== RUN   TestAccAWSS3BucketMetric_WithFilterMultipleTags
--- PASS: TestAccAWSS3BucketMetric_WithFilterMultipleTags (74.80s)
=== RUN   TestAccAWSS3BucketMetric_WithFilterSingleTag
--- PASS: TestAccAWSS3BucketMetric_WithFilterSingleTag (74.27s)
=== RUN   TestAccAWSS3BucketNotification_basic
--- PASS: TestAccAWSS3BucketNotification_basic (129.35s)
=== RUN   TestAccAWSS3BucketNotification_withoutFilter
--- PASS: TestAccAWSS3BucketNotification_withoutFilter (47.86s)
=== RUN   TestAccAWSS3BucketObject_source
--- PASS: TestAccAWSS3BucketObject_source (44.15s)
=== RUN   TestAccAWSS3BucketObject_content
--- PASS: TestAccAWSS3BucketObject_content (45.34s)
=== RUN   TestAccAWSS3BucketObject_withContentCharacteristics
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (55.56s)
=== RUN   TestAccAWSS3BucketObject_updates
--- PASS: TestAccAWSS3BucketObject_updates (76.56s)
=== RUN   TestAccAWSS3BucketObject_updatesWithVersioning
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (79.19s)
=== RUN   TestAccAWSS3BucketObject_kms
--- PASS: TestAccAWSS3BucketObject_kms (68.82s)
=== RUN   TestAccAWSS3BucketObject_sse
--- PASS: TestAccAWSS3BucketObject_sse (45.81s)
=== RUN   TestAccAWSS3BucketObject_acl
--- PASS: TestAccAWSS3BucketObject_acl (76.45s)
=== RUN   TestAccAWSS3BucketObject_storageClass
--- PASS: TestAccAWSS3BucketObject_storageClass (77.39s)
=== RUN   TestAccAWSS3BucketObject_tags
--- PASS: TestAccAWSS3BucketObject_tags (43.62s)
=== RUN   TestAccAWSS3BucketPolicy_basic
--- PASS: TestAccAWSS3BucketPolicy_basic (49.44s)
=== RUN   TestAccAWSS3BucketPolicy_policyUpdate
--- PASS: TestAccAWSS3BucketPolicy_policyUpdate (76.70s)
=== RUN   TestAccAWSS3BucketReplication_basic
--- PASS: TestAccAWSS3BucketReplication_basic (94.66s)
=== RUN   TestAccAWSS3Bucket_basic
--- PASS: TestAccAWSS3Bucket_basic (41.58s)
=== RUN   TestAccAWSS3Bucket_namePrefix
--- PASS: TestAccAWSS3Bucket_namePrefix (40.90s)
=== RUN   TestAccAWSS3Bucket_generatedName
--- PASS: TestAccAWSS3Bucket_generatedName (39.73s)
=== RUN   TestAccAWSS3Bucket_region
--- PASS: TestAccAWSS3Bucket_region (50.51s)
=== RUN   TestAccAWSS3Bucket_acceleration
--- PASS: TestAccAWSS3Bucket_acceleration (97.26s)
=== RUN   TestAccAWSS3Bucket_RequestPayer
--- PASS: TestAccAWSS3Bucket_RequestPayer (77.05s)
=== RUN   TestAccAWSS3Bucket_Policy
--- PASS: TestAccAWSS3Bucket_Policy (101.35s)
=== RUN   TestAccAWSS3Bucket_UpdateAcl
--- PASS: TestAccAWSS3Bucket_UpdateAcl (73.42s)
=== RUN   TestAccAWSS3Bucket_Website_Simple
--- PASS: TestAccAWSS3Bucket_Website_Simple (119.40s)
=== RUN   TestAccAWSS3Bucket_WebsiteRedirect
--- PASS: TestAccAWSS3Bucket_WebsiteRedirect (114.01s)
=== RUN   TestAccAWSS3Bucket_WebsiteRoutingRules
--- PASS: TestAccAWSS3Bucket_WebsiteRoutingRules (76.15s)
=== RUN   TestAccAWSS3Bucket_enableDefaultEncryption_whenTypical
--- PASS: TestAccAWSS3Bucket_enableDefaultEncryption_whenTypical (76.07s)
=== RUN   TestAccAWSS3Bucket_enableDefaultEncryption_whenAES256IsUsed
--- PASS: TestAccAWSS3Bucket_enableDefaultEncryption_whenAES256IsUsed (43.80s)
=== RUN   TestAccAWSS3Bucket_disableDefaultEncryption_whenDefaultEncryptionIsEnabled
--- PASS: TestAccAWSS3Bucket_disableDefaultEncryption_whenDefaultEncryptionIsEnabled (76.44s)
=== RUN   TestAccAWSS3Bucket_shouldFailNotFound
--- PASS: TestAccAWSS3Bucket_shouldFailNotFound (22.70s)
=== RUN   TestAccAWSS3Bucket_Versioning
--- PASS: TestAccAWSS3Bucket_Versioning (113.07s)
=== RUN   TestAccAWSS3Bucket_Cors
--- PASS: TestAccAWSS3Bucket_Cors (83.11s)
=== RUN   TestAccAWSS3Bucket_Logging
--- PASS: TestAccAWSS3Bucket_Logging (72.87s)
=== RUN   TestAccAWSS3Bucket_Lifecycle
--- PASS: TestAccAWSS3Bucket_Lifecycle (113.73s)
=== RUN   TestAccAWSS3Bucket_Replication
--- PASS: TestAccAWSS3Bucket_Replication (246.35s)
=== RUN   TestAccAWSS3Bucket_ReplicationWithoutStorageClass
--- PASS: TestAccAWSS3Bucket_ReplicationWithoutStorageClass (98.53s)
=== RUN   TestAccAWSS3Bucket_ReplicationExpectVersioningValidationError
--- PASS: TestAccAWSS3Bucket_ReplicationExpectVersioningValidationError (55.70s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3525.593s

@cornfeedhobo
Copy link

cornfeedhobo commented Apr 5, 2018

Fixes #749
@radeksimko Think we could get a review soon?

@cornfeedhobo
Copy link

@elbuo8 Could you take a look at #3993 and see if there is anything relevant before getting this reviewed?

@mgren
Copy link
Contributor

mgren commented Aug 30, 2018

Hi, any chance of this getting merged anytime soon? Could really use crr as a separate resource.

@cornfeedhobo
Copy link

yeah damn near forgot about this...

@CyrilDevOps
Copy link

Will it be merge ? I was trying to create bidirectionnal s3 replication and I had to fake the 'arn' toavoid 'cycle error'.

@typez
Copy link

typez commented May 2, 2019

Hi folks,
Just came across this s3 replication cyclic issue and wondering if this PR is going to be merged. Thanks.

@legal90
Copy link

legal90 commented Jun 18, 2019

@elbuo8 Could you please rebase your branch, so the PR hopefully could be merged? 🙏

@aeschright aeschright requested a review from a team June 25, 2019 18:44
@cyborgkurochan
Copy link

@elbuo8 Could you please rebase your branch, so we get this new resource? I am desperately in need of this.

@cornfeedhobo
Copy link

@elbuo8 Are you still tracking this?

@cyborgkurochan
Copy link

@elbuo8: I am still tracking this and in desperate need of this. I am right now attempting this with a mix of terraform and aws cli but getting an official fix would really help.

@amitsehgal
Copy link

waiting on this PR to be merged

@hangxie
Copy link

hangxie commented Jan 20, 2020

Any update on this PR?

@cornfeedhobo
Copy link

@radeksimko could this be adopted by an in-house dev? this is a super useful resource that never hit master

@moraneva
Copy link
Contributor

moraneva commented Jun 9, 2020

bump

@cornfeedhobo
Copy link

@anGie44 @bflad Could you please take a look at this.

@bflad
Copy link
Contributor

bflad commented Jun 15, 2020

Hi folks 👋 Just to quickly provide some context here about this lingering pull request -- this will likely be further looked into after Terraform AWS Provider version 3.0.0 is released (in a few weeks). Since this will impact a large portion of the community, we will write up a proposal issue for splitting out all the various S3 Bucket functionality into separate resources and come up with an action plan. The hope would be that the new resources would be introduced early in the 3.x versions and the inline S3 Bucket functionality removed in 4.0.0.

@teamterraform
Copy link

Notification of Recent and Upcoming Changes to Contributions

Thank you for this contribution! There have been a few recent development changes that affect this pull request. We apologize for the inconvenience, especially if there have been long review delays up until now. Please note that this is automated message from an unmonitored account. See the FAQ for additional information on the maintainer team and review prioritization.

If you are unable to complete these updates, please leave a comment for the community and maintainers so someone can potentially continue the work. The maintainers will encourage other contributors to use the existing contribution as the base for additional changes as appropriate. Otherwise, contributions that do not receive updated code or comments from the original contributor may be closed in the future so the maintainers can focus on active items.

For the most up to date information about Terraform AWS Provider development, see the Contributing Guide. Additional technical debt changes can be tracked with the technical-debt label on issues.

As part of updating a pull request with these changes, the most current unit testing and linting will run. These may report issues that were not previously reported.

Action Required: Terraform 0.12 Syntax

Reference: #8950
Reference: #14417

Version 3 and later of the Terraform AWS Provider, which all existing contributions would potentially be added, only supports Terraform 0.12 and later. Certain syntax elements of Terraform 0.11 and earlier show deprecation warnings during runs with Terraform 0.12. Documentation and test configurations, such as those including deprecated string interpolations (some_attribute = "${aws_service_thing.example.id}") should be updated to the newer syntax (some_attribute = aws_service_thing.example.id). Contribution testing will automatically fail on older syntax in the near future. Please see the referenced issues for additional information.

Action Required: Terraform Plugin SDK Version 2

Reference: #14551

The Terraform AWS Provider has been upgraded to the latest version of the Terraform Plugin SDK. Generally, most changes to contributions should only involve updating Go import paths in source code files. Please see the referenced issue for additional information.

Removal of website/aws.erb File

Reference: #14712

Any changes to the website/aws.erb file are no longer necessary and should be removed from this contribution to prevent merge issues in the near future when the file is removed from the repository. Please see the referenced issue for additional information.

Upcoming Change of Git Branch Naming

Reference: #14292

Development environments will need their upstream Git branch updated from master to main in the near future. Please see the referenced issue for additional information and scheduling.

Upcoming Change of GitHub Organization

Reference: #14715

This repository will be migrating from https://github.com/terraform-providers/terraform-provider-aws to https://github.com/hashicorp/terraform-provider-aws. No practitioner or developer action is anticipated and most GitHub functionality will automatically redirect to the new location. Go import paths including terraform-providers can remain for now. Please see the referenced issue for additional information and scheduling.

Base automatically changed from master to main January 23, 2021 00:55
@breathingdust breathingdust requested a review from a team as a code owner January 23, 2021 00:55
@dmccaffery
Copy link

@bflad : I see that this is scheduled for review -- I am more than happy to own any required changes if you need a hand, assuming the original contributor lost all hope long ago. :-O

@lee5i3
Copy link

lee5i3 commented Apr 8, 2021

Any progress on this? I need both of my buckets with replication after they are created, replication between us-east-1 and us-west-2.. right now we are using local-exec after both buckets are created using aws s3api put-bucket-replication.. I would rather have this in place as my solution is not very stable (doesnt work if it doesnt exist or have changes in aws)

@cornfeedhobo
Copy link

Someone just needs to create a new PR at this point. Please don't wait for permission. If you have time, do it.

@zhelding
Copy link
Contributor

Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding.

Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single aws directory to a large number of separate directories in internal/service, each corresponding to a particular AWS service. This separation of code has also allowed for us to simplify the names of underlying functions -- while still avoiding namespace collisions.

We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author.

For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000.

For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide.

@ewbankkit
Copy link
Contributor

Superseded by #20777.

@ewbankkit
Copy link
Contributor

@elbuo8 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit closed this Oct 24, 2021
@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, 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 Jun 15, 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. size/XL Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.