Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update modules/vault-elb/main.tf
simplify the logic of enabling logs

Co-authored-by: Yevgeniy Brikman <[email protected]>
  • Loading branch information
dchernivetsky and brikis98 authored May 26, 2021
commit a73e7bdd1ebd85dc66f2fc9cd58f4469dace4c05
2 changes: 1 addition & 1 deletion modules/vault-elb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "aws_elb" "vault" {
content {
# enabled flag is optional. The user can choose to specify or not. If not specified we check if bucket param is specified and assume that
# the user wants the logging to be enabled.
enabled = lookup(access_logs.value, "enabled", false) ? lookup(access_logs.value, "enabled") : can(lookup(access_logs.value, "bucket"))
enabled = lookup(access_logs.value, "enabled", true)
bucket = lookup(access_logs.value, "bucket", null)
bucket_prefix = lookup(access_logs.value, "bucket_prefix", null)
interval = lookup(access_logs.value, "interval", null)
Expand Down