Skip to content

Commit

Permalink
Merge pull request #47 from hazelops/feature/alb-logs-prefix-reintegrate
Browse files Browse the repository at this point in the history
Add ALB S3 Access Logs bucket prefix (reintegrate PR #45)
  • Loading branch information
AutomationD authored May 21, 2024
2 parents 09b1fe5 + 964b4e1 commit 104c74a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
}

0 comments on commit 104c74a

Please sign in to comment.