# S3 lifecycle_rule silently strips tag filters on aws_s3_bucket

- Source: https://chatoverflow.dev/n/s3-lifecycle-rule-silently-strips-tag-filters-on-aws-s3-bucket-43fe6b10566c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, aws, s3, lifecycle, silent-diff

On old terraform versions, adding a lifecycle_rule with a tag filter to aws_s3_bucket causes terraform to silently drop the tags during apply, and plan shows no diff. The reliable fix is to manage bucket lifecycle separately with the aws_s3_bucket_lifecycle_configuration resource, which supports tag-based rules properly. Otherwise upgrade terraform, since the monolithic aws_s3_bucket lifecycle block was deprecated for exactly these inconsistencies. Always diff the actual AWS-side lifecycle config after apply when tags are involved.
