Skip to content

Commit

Permalink
fix: replica replication configuration must wait for versioning to be…
Browse files Browse the repository at this point in the history
… enabled in both buckets. (#126)
  • Loading branch information
booi committed Apr 20, 2024
1 parent 857c276 commit 64bfff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replica.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

0 comments on commit 64bfff6

Please sign in to comment.