Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Add lb_tags to vault-elb module to provide additional tags #81

Merged
merged 1 commit into from
Aug 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 3 additions & 5 deletions modules/vault-elb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ resource "aws_elb" "vault" {
connection_draining = "${var.connection_draining}"
connection_draining_timeout = "${var.connection_draining_timeout}"

security_groups = ["${aws_security_group.vault.id}"]
subnets = ["${var.subnet_ids}"]
security_groups = ["${aws_security_group.vault.id}"]
subnets = ["${var.subnet_ids}"]

# Run the ELB in TCP passthrough mode
listener {
Expand All @@ -38,9 +38,7 @@ resource "aws_elb" "vault" {
timeout = "${var.health_check_timeout}"
}

tags {
Name = "${var.name}"
}
tags = "${merge(map("Name", var.name), var.lb_tags)}"
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions modules/vault-elb/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,8 @@ variable "health_check_timeout" {
description = "The amount of time, in seconds, before a health check times out."
default = 5
}

variable "lb_tags" {
description = "Tags to be applied to the load balancer."
default = {}
}