Skip to content

Commit

Permalink
feat: s3_key_prefix attribute for cloudtrail (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
h1manshu98 authored Nov 9, 2023
1 parent 40ed062 commit 4c69281
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ resource "aws_cloudtrail" "default" {
name = module.labels.id
enable_logging = var.enable_logging
s3_bucket_name = var.s3_bucket_name
s3_key_prefix = var.s3_key_prefix
enable_log_file_validation = var.enable_log_file_validation
is_multi_region_trail = var.is_multi_region_trail
include_global_service_events = var.include_global_service_events
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ variable "s3_bucket_name" {
description = "S3 bucket name for CloudTrail log."
}

variable "s3_key_prefix" {
type = string
default = ""
description = "(Optional) S3 key prefix that follows the name of the bucket you have designated for log file delivery."
}

variable "cloud_watch_logs_role_arn" {
type = string
default = ""
Expand Down

0 comments on commit 4c69281

Please sign in to comment.