Skip to content

Commit e75b929

Browse files
committed
fix(tf): Resolve deprecation in S3 lifecycle cfg
Specifying neither 'filter' nor 'prefix' is apparently deprecated in TF AWSv5 and will be an error in v6 of the provider - so adding an empty filter spec to resolve the warning.
1 parent ac1c147 commit e75b929

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

infra/modules/kb-stack/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "kb_bucket_lifecycle" {
4242
id = "knowledge_base_lifecycle"
4343
status = "Enabled"
4444

45+
filter {}
4546
transition {
4647
days = 30
4748
storage_class = "STANDARD_IA"

0 commit comments

Comments
 (0)