Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: s3_key_prefix attribute for cloudtrail #26

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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