Skip to content

Commit e0a59a4

Browse files
committed
feat: expose log rention for single exmaple
1 parent e73c568 commit e0a59a4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/single-account-ecs/cloudtrail.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module "cloudtrail" {
1010
is_organizational = false
1111
is_multi_region_trail = var.cloudtrail_is_multi_region_trail
1212
cloudtrail_kms_enable = var.cloudtrail_kms_enable
13+
s3_bucket_expiration_days = var.cloudtrail_s3_bucket_expiration_days
1314

1415
tags = var.tags
1516
}

examples/single-account-ecs/variables.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ variable "cloudtrail_kms_enable" {
2626
description = "true/false whether cloudtrail delivered events to S3 should persist encrypted"
2727
}
2828

29-
29+
variable "cloudtrail_s3_bucket_expiration_days" {
30+
type = number
31+
default = 5
32+
description = "Number of days that the logs will persist in the bucket"
33+
}
3034
#
3135
# ecs, security group, vpc
3236
#

0 commit comments

Comments
 (0)