Skip to content

Commit 2ebb06d

Browse files
committed
feat: add lifecycle rules support to S3 resources in Terraform
1 parent 1a1b890 commit 2ebb06d

File tree

1 file changed

+4
-2
lines changed
  • terraform/persistent

1 file changed

+4
-2
lines changed

terraform/persistent/s3.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
variable "s3" {
22
type = map(
33
object({
4-
name_prefix = string
4+
name_prefix = string
5+
lifecycle_rules = any
56
})
67
)
78
default = {}
@@ -10,9 +11,10 @@ variable "s3" {
1011

1112
module "s3" {
1213
for_each = var.s3
13-
source = "git::https://github.com/skyleague/aws-s3.git?ref=v1.0.0"
14+
source = "git::https://github.com/skyleague/aws-s3.git?ref=add-dynamic-lifecycle-rules"
1415

1516
bucket_name_prefix = each.value.name_prefix
17+
lifecycle_rules = each.value.lifecycle_rules
1618
}
1719

1820

0 commit comments

Comments
 (0)