Skip to content

Commit

Permalink
PRMP-1350: Remove lifecycle rules for s3 object delete tags
Browse files Browse the repository at this point in the history
  • Loading branch information
abbas-khan10 authored Dec 12, 2024
1 parent 774b2bd commit a532008
Showing 1 changed file with 0 additions and 60 deletions.
60 changes: 0 additions & 60 deletions infrastructure/buckets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,36 +99,6 @@ resource "aws_s3_bucket_lifecycle_configuration" "lg-lifecycle-rules" {
}
}
}
rule {
id = "Delete LG records after soft delete"
status = "Enabled"

expiration {
days = 56
}

filter {
tag {
key = "soft-delete"
value = "true"
}
}
}
rule {
id = "Delete LG records after death"
status = "Enabled"

expiration {
days = 3650
}

filter {
tag {
key = "patient-death"
value = "true"
}
}
}
rule {
id = "default-to-intelligent-tiering"
status = "Enabled"
Expand All @@ -140,36 +110,6 @@ resource "aws_s3_bucket_lifecycle_configuration" "lg-lifecycle-rules" {

resource "aws_s3_bucket_lifecycle_configuration" "doc-store-lifecycle-rules" {
bucket = module.ndr-document-store.bucket_id
rule {
id = "Delete DS records after soft delete"
status = "Enabled"

expiration {
days = 56
}

filter {
tag {
key = "soft-delete"
value = "true"
}
}
}
rule {
id = "Delete DS records after death"
status = "Enabled"

expiration {
days = 3650
}

filter {
tag {
key = "patient-death"
value = "true"
}
}
}
rule {
id = "default-to-intelligent-tiering"
status = "Enabled"
Expand Down

0 comments on commit a532008

Please sign in to comment.