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

Commit f8af50f

Browse files
authored
Merge pull request #11 from asicsdigital/casper-feature-access-logs-tf12
Enabled bool for access logging - Terraform 12
2 parents a7f9a2f + c8fbdcc commit f8af50f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
jobs:
44
build:
55
docker:
6-
- image: hashicorp/terraform:0.11.8
6+
- image: hashicorp/terraform:0.12.9
77
entrypoint: /bin/sh
88
steps:
99
- checkout

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.env*
2+
.terraform*

alb.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ resource "aws_alb" "vault" {
2020
}
2121

2222
access_logs {
23-
bucket = var.alb_log_bucket
24-
prefix = "logs/elb/${local.vpc_name}/vault"
23+
enabled = var.access_logs_enabled
24+
bucket = var.alb_log_bucket
25+
prefix = "logs/elb/${local.vpc_name}/vault"
2526
}
2627
}
2728

@@ -88,4 +89,3 @@ resource "aws_alb_listener" "vault_http" {
8889
type = "forward"
8990
}
9091
}
91-

variables.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,6 @@ variable "initialize" {
8080
description = "Runs a `vault operator init` command to initialize the Vault backend. Run this once and then extract the unseal keys from the ECS task's logs."
8181
}
8282

83+
variable "access_logs_enabled" {
84+
default = true
85+
}

0 commit comments

Comments
 (0)