Terraform 1.4.3: implementing `aws_s3_bucket` Lifecycle Rules Not Being Applied
I'm trying to figure out Hey everyone, I'm running into an issue that's driving me crazy... I'm working on a personal project and I'm having trouble with lifecycle rules for an `aws_s3_bucket` in Terraform 1.4.3... I've defined a lifecycle rule that should transition objects to Glacier storage after 30 days, but when I run `terraform apply`, it doesn't seem to apply the rule as expected. Here's the relevant part of my configuration: ```hcl resource "aws_s3_bucket" "my_bucket" { bucket = "my-example-bucket" lifecycle_rule { id = "transition-to-glacier" enabled = true transition { days = 30 storage_class = "GLACIER" } } } ``` When I run `terraform apply`, I see this behavior: ``` behavior: Invalid value for "storage_class": "GLACIER" is not one of [STANDARD STANDARD_IA ONEZONE_IA INTELLIGENT_TIERING DEEP_ARCHIVE] ``` I also tried using `GLACIER_IR`, but that leads to the same behavior. I validated that the bucket is created correctly with `terraform plan`, but the lifecycle rules do not appear in the output. I tried destroying and recreating the bucket, but the scenario continues. I also verified that I am using the correct AWS provider version (3.75.1) which supports lifecycle rules. Can anyone guide to understand why the lifecycle rule isn't being applied correctly? What am I missing here? Any ideas what could be causing this? Thanks in advance! I'd love to hear your thoughts on this. My team is using Hcl for this CLI tool. Any pointers in the right direction?