Skip to content

Commit

Permalink
Merge pull request #8047 from ministryofjustice/revert-8045-feature/7…
Browse files Browse the repository at this point in the history
…607-firewall-logs-direct-to-s3

Revert "Optionally output firewall logs to S3 bucket"
  • Loading branch information
dms1981 authored Sep 24, 2024
2 parents 1e939e7 + d9275e3 commit 071bb9a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions terraform/modules/firewall-logging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ resource "aws_networkfirewall_logging_configuration" "main" {
log_destination_type = "CloudWatchLogs"
log_type = "ALERT"
}
dynamic "log_destination_config" {
for_each = var.s3_log_bucket != "" ? toset([var.s3_log_bucket]) : []
content {
log_destination = {
bucketName = log_destination_config.value
}
log_destination_type = "S3"
log_type = "ALERT"
}
}
}
}

Expand Down
5 changes: 0 additions & 5 deletions terraform/modules/firewall-logging/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ variable "fw_arn" {
description = "ARN of firewall for logging configuration"
type = string
}
variable "s3_log_bucket" {
description = "Optional ARN of an S3 bucket to ship logs to"
default = ""
type = string
}

variable "tags" {
description = "A map of keys and values used to create resource metadata tags"
Expand Down

0 comments on commit 071bb9a

Please sign in to comment.