Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
add alb logs enabled var
Browse files Browse the repository at this point in the history
  • Loading branch information
Falpangaea committed Mar 12, 2020
1 parent 509aa9b commit e6ad732
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "aws_alb" "consul" {
}

access_logs {
enabled = var.lb_logs_enabled
bucket = var.alb_log_bucket
prefix = "logs/elb/${data.aws_vpc.vpc.tags["Name"]}/consul"
}
Expand Down Expand Up @@ -94,4 +95,3 @@ resource "aws_alb_listener_certificate" "consul_https" {
listener_arn = aws_alb_listener.consul_https[0].arn
certificate_arn = data.aws_acm_certificate.cert[0].arn
}

5 changes: 4 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ variable "alb_log_bucket" {
description = "s3 bucket to send ALB Logs"
}

variable "lb_logs_enabled" {
default = "true"
}

variable "lb_deregistration_delay" {
description = "The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds."
default = "300"
Expand Down Expand Up @@ -159,4 +163,3 @@ variable "oauth2_proxy_client_id" {
variable "oauth2_proxy_client_secret" {
description = "the OAuth Client Secret"
}

0 comments on commit e6ad732

Please sign in to comment.