-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Amazon S3 Replication to multiple destinations #16546
Comments
It looks like this should be supported in the current code (there is no limitation on |
It seems to be limited by aws go sdk version of terraform aws provider (3.20.0). At moment, I am still getting below error
it's been addressed in aws/aws-sdk-go#3668 |
Hmm, v3.20.0 built against AWS SDK v1.36.0: #16530. $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSS3Bucket_Replication_MultipleDestinations'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSS3Bucket_Replication_MultipleDestinations -timeout 120m
=== RUN TestAccAWSS3Bucket_Replication_MultipleDestinations
=== PAUSE TestAccAWSS3Bucket_Replication_MultipleDestinations
=== CONT TestAccAWSS3Bucket_Replication_MultipleDestinations
resource_aws_s3_bucket_test.go:1560: Step 1/2 error: Error running apply: 2020/12/09 10:01:38 [DEBUG] Using modified User-Agent: Terraform/0.12.26 HashiCorp-terraform-exec/0.10.0
Error: Error putting S3 replication configuration: InvalidRequest: Number of distinct destination bucket ARNs cannot exceed 1
status code: 400, request id: A786AF26FAF89ABB, host id: Ek/dB+mcb4roTI+fTsL4jxFAMhR4RuoDNsa1bER6kK9VoKsoe0gWG/iDyxYGBPc23GovYJqebDo=
--- FAIL: TestAccAWSS3Bucket_Replication_MultipleDestinations (14.04s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 14.143s
FAIL
GNUmakefile:27: recipe for target 'testacc' failed
make: *** [testacc] Error 1 Investigating... |
Priority is used when multiple destinations are specified, so |
👋 hey @ewbankkit, I come about on this error The problem was that I was not specifying Maybe we can update the docs? |
@geototti21 Yes, I found that I had to add |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
New or Affected Resource(s)
aws_s3_bucket
Potential Terraform Configuration
References
Announcement.
Blog post.
Developer Guide.
The text was updated successfully, but these errors were encountered: