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] }