diff --git a/terraform/persistent/s3.tf b/terraform/persistent/s3.tf index 3c27504..cb645ec 100644 --- a/terraform/persistent/s3.tf +++ b/terraform/persistent/s3.tf @@ -1,7 +1,8 @@ variable "s3" { type = map( object({ - name_prefix = string + name_prefix = string + lifecycle_rules = optional(any, []) }) ) default = {} @@ -10,9 +11,10 @@ variable "s3" { module "s3" { for_each = var.s3 - source = "git::https://github.com/skyleague/aws-s3.git?ref=v1.0.0" + source = "git::https://github.com/skyleague/aws-s3.git?ref=v1.1.0" bucket_name_prefix = each.value.name_prefix + lifecycle_rules = each.value.lifecycle_rules }