From c9b2cd3d7d217337e4e2582fcc80bd4190e493f1 Mon Sep 17 00:00:00 2001 From: javsanbel2 Date: Mon, 2 Dec 2024 17:37:29 +0000 Subject: [PATCH] test 3 --- s3.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3.tf b/s3.tf index a57b7a9..7b34763 100644 --- a/s3.tf +++ b/s3.tf @@ -94,7 +94,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "apiary_data_bucket_versioning_ status = lookup(each.value, "noncurrent_version_expiration_days", "") != "" ? "Enabled" : "Disabled" noncurrent_version_expiration { - noncurrent_days = lookup(each.value, "s3_noncurrent_version_expiration_days", var.noncurrent_version_expiration_days) + noncurrent_days = tonumber(lookup(each.value, "s3_noncurrent_version_expiration_days", var.noncurrent_version_expiration_days)) } } rule { @@ -102,7 +102,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "apiary_data_bucket_versioning_ status = lookup(each.value, "newer_noncurrent_versions", "") != "" ? "Enabled" : "Disabled" noncurrent_version_expiration { - newer_noncurrent_versions = lookup(each.value, "newer_noncurrent_versions", var.newer_noncurrent_versions) + newer_noncurrent_versions = tonumber(lookup(each.value, "newer_noncurrent_versions", var.newer_noncurrent_versions)) } } }