From b26f23edcf1e203e934081e9b5a03024043d06ee Mon Sep 17 00:00:00 2001 From: Brandon Ooi Date: Thu, 11 Apr 2024 13:00:22 -0400 Subject: [PATCH] Replica replication configuration must wait for versioning to be enabled in both buckets. --- replica.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replica.tf b/replica.tf index 453ba0c..8deffd9 100644 --- a/replica.tf +++ b/replica.tf @@ -303,5 +303,5 @@ resource "aws_s3_bucket_replication_configuration" "state" { # Versioning can't be disabled when the replication configuration exists. # https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-and-other-bucket-configs.html#replication-and-versioning - depends_on = [aws_s3_bucket_versioning.state] + depends_on = [aws_s3_bucket_versioning.state, aws_s3_bucket_versioning.replica] }