Skip to content

Commit a532008

Browse files
authored
PRMP-1350: Remove lifecycle rules for s3 object delete tags
1 parent 774b2bd commit a532008

1 file changed

Lines changed: 0 additions & 60 deletions

File tree

infrastructure/buckets.tf

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -99,36 +99,6 @@ resource "aws_s3_bucket_lifecycle_configuration" "lg-lifecycle-rules" {
9999
}
100100
}
101101
}
102-
rule {
103-
id = "Delete LG records after soft delete"
104-
status = "Enabled"
105-
106-
expiration {
107-
days = 56
108-
}
109-
110-
filter {
111-
tag {
112-
key = "soft-delete"
113-
value = "true"
114-
}
115-
}
116-
}
117-
rule {
118-
id = "Delete LG records after death"
119-
status = "Enabled"
120-
121-
expiration {
122-
days = 3650
123-
}
124-
125-
filter {
126-
tag {
127-
key = "patient-death"
128-
value = "true"
129-
}
130-
}
131-
}
132102
rule {
133103
id = "default-to-intelligent-tiering"
134104
status = "Enabled"
@@ -140,36 +110,6 @@ resource "aws_s3_bucket_lifecycle_configuration" "lg-lifecycle-rules" {
140110

141111
resource "aws_s3_bucket_lifecycle_configuration" "doc-store-lifecycle-rules" {
142112
bucket = module.ndr-document-store.bucket_id
143-
rule {
144-
id = "Delete DS records after soft delete"
145-
status = "Enabled"
146-
147-
expiration {
148-
days = 56
149-
}
150-
151-
filter {
152-
tag {
153-
key = "soft-delete"
154-
value = "true"
155-
}
156-
}
157-
}
158-
rule {
159-
id = "Delete DS records after death"
160-
status = "Enabled"
161-
162-
expiration {
163-
days = 3650
164-
}
165-
166-
filter {
167-
tag {
168-
key = "patient-death"
169-
value = "true"
170-
}
171-
}
172-
}
173113
rule {
174114
id = "default-to-intelligent-tiering"
175115
status = "Enabled"

0 commit comments

Comments
 (0)