Skip to content

Commit

Permalink
Merge pull request #11 from asicsdigital/casper-feature-access-logs-tf12
Browse files Browse the repository at this point in the history
Enabled bool for access logging - Terraform 12
  • Loading branch information
Falpangaea authored Nov 8, 2019
2 parents a7f9a2f + c8fbdcc commit f8af50f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
build:
docker:
- image: hashicorp/terraform:0.11.8
- image: hashicorp/terraform:0.12.9
entrypoint: /bin/sh
steps:
- checkout
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env*
.terraform*
6 changes: 3 additions & 3 deletions alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ resource "aws_alb" "vault" {
}

access_logs {
bucket = var.alb_log_bucket
prefix = "logs/elb/${local.vpc_name}/vault"
enabled = var.access_logs_enabled
bucket = var.alb_log_bucket
prefix = "logs/elb/${local.vpc_name}/vault"
}
}

Expand Down Expand Up @@ -88,4 +89,3 @@ resource "aws_alb_listener" "vault_http" {
type = "forward"
}
}

3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ variable "initialize" {
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."
}

variable "access_logs_enabled" {
default = true
}

0 comments on commit f8af50f

Please sign in to comment.