diff --git a/aws/private-s3-bucket/bucket_options.tf b/aws/private-s3-bucket/bucket_options.tf index c7ea022..6960e63 100644 --- a/aws/private-s3-bucket/bucket_options.tf +++ b/aws/private-s3-bucket/bucket_options.tf @@ -121,14 +121,16 @@ resource "aws_s3_bucket_lifecycle_configuration" "b" { dynamic "noncurrent_version_transition" { for_each = rule.value.noncurrent_version_transition content { - noncurrent_days = noncurrent_version_transition.value.days - storage_class = noncurrent_version_transition.value.storage_class + newer_noncurrent_versions = noncurrent_version_transition.value.versions + noncurrent_days = noncurrent_version_transition.value.days + storage_class = noncurrent_version_transition.value.storage_class } } dynamic "noncurrent_version_expiration" { for_each = rule.value.noncurrent_version_expiration content { - noncurrent_days = noncurrent_version_expiration.value.days + newer_noncurrent_versions = noncurrent_version_expiration.value.versions + noncurrent_days = noncurrent_version_expiration.value.days } } }