Skip to content

Commit

Permalink
Remove tags params in favor of default_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sugdyzhekov authored Apr 15, 2022
1 parent 90622bb commit 4afa615
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
variable "name" {
description = "Name of load balancer. Also used in security group name."
}

variable "public_subnets" {
description = "List of AWS public subnet ids"
type = list(string)
}

variable "target_cidr_blocks" {
description = "List of AWS private target subnet CIDR"
type = list(string)
}

variable "http_ports" {
description = "List of plain http ports"
default = [80]
}

variable "https_ports" {
description = "List of encrypted https ports"
default = [443]
}

variable "certificate_arn" {
description = "Certificate for ALB that should contains "
default = ""
}

variable "access_log_bucket" {
description = "Bucket to setore ALB access log"
default = ""
}

variable "access_log_prefix" {
description = "Enable ALB access log"
default = ""
}
variable "tags" {
description = "Tags."
type = map(string)
}

data "aws_subnet" "public_1" {
id = local.public_subnets[0]
}
Expand Down Expand Up @@ -61,9 +65,9 @@ locals {
access_logs_bucket = var.access_log_bucket
access_logs_prefix = var.access_log_prefix

tags = merge({
tags = {
Name = var.name,
Module = "ALB"
}, var.tags)
}
}

0 comments on commit 4afa615

Please sign in to comment.