From 964b4e124d720d819e0e3c775fa29d27ce4e5e79 Mon Sep 17 00:00:00 2001 From: Dmitry Kireev Date: Sun, 19 May 2024 06:35:17 +0000 Subject: [PATCH] Add ALB S3 Access Logs bucket prefix (reintegrate PR #45) --- alb.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) 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 = "" +}