Skip to content

Commit

Permalink
[PRMT-3317-2660] - Added depends_on for object lock config for ehr_re…
Browse files Browse the repository at this point in the history
…po_bucket
  • Loading branch information
MohammadIqbalAD-NHS committed Nov 24, 2023
1 parent c6b77e2 commit b5fd14b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ resource "aws_s3_bucket_object_lock_configuration" "ehr_repo_bucket" {
days = 36500 # 100 Years
}
}

depends_on = [aws_s3_bucket_versioning.ehr_repo_bucket]
}

resource "aws_s3_bucket_versioning" "ehr_repo_bucket" {
Expand Down

0 comments on commit b5fd14b

Please sign in to comment.