diff --git a/alb.tf b/alb.tf index f93f51f..bb314ad 100644 --- a/alb.tf +++ b/alb.tf @@ -21,6 +21,7 @@ module "alb" { access_logs = var.alb_access_logs_enabled && var.alb_access_logs_s3bucket_name != "" ? { bucket = var.alb_access_logs_s3bucket_name + prefix = var.alb_access_logs_s3prefix } : {} tags = { diff --git a/variables.tf b/variables.tf index 2058dbe..0db3588 100644 --- a/variables.tf +++ b/variables.tf @@ -737,3 +737,9 @@ variable "alb_access_logs_s3bucket_name" { description = "S3 bucket name for ALB access logs" default = "" } + +variable "alb_access_logs_s3prefix" { + type = string + description = "S3 prefix for ALB access logs" + default = "" +}