Skip to content

Commit 64bfff6

Browse files
authored
fix: replica replication configuration must wait for versioning to be enabled in both buckets. (#126)
1 parent 857c276 commit 64bfff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replica.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,5 +303,5 @@ resource "aws_s3_bucket_replication_configuration" "state" {
303303

304304
# Versioning can't be disabled when the replication configuration exists.
305305
# https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-and-other-bucket-configs.html#replication-and-versioning
306-
depends_on = [aws_s3_bucket_versioning.state]
306+
depends_on = [aws_s3_bucket_versioning.state, aws_s3_bucket_versioning.replica]
307307
}

0 commit comments

Comments
 (0)