Skip to content

Commit

Permalink
Removed default_tags (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: eshchudlo <[email protected]>
  • Loading branch information
red4ed and eshchudlo authored May 18, 2022
1 parent 1d9224c commit a36b323
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
locals {
default_tags = {
Project = var.project
Environment = var.environment
}

subdomains = var.enable_subdomains ? "*." : ""
}

Expand Down Expand Up @@ -36,8 +31,6 @@ resource "aws_security_group" "allow_in80_in443_outALL" {
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}

tags = local.default_tags
}

resource "aws_s3_bucket" "alb-logs" {
Expand All @@ -46,8 +39,6 @@ resource "aws_s3_bucket" "alb-logs" {
acl = "log-delivery-write"
force_destroy = lower(var.environment) == "production" ? "false" : var.force_destroy

tags = local.default_tags

lifecycle_rule {
enabled = var.alb_logs_lifecycle_rule_enabled

Expand Down Expand Up @@ -161,7 +152,7 @@ module "alb" {

logging_enabled = var.enable_logging
log_bucket_name = element(concat(aws_s3_bucket.alb-logs.*.id, [""]), 0)
tags = merge(local.default_tags, var.tags)
tags = var.tags

target_groups_defaults = var.target_groups_defaults
}
Expand Down

0 comments on commit a36b323

Please sign in to comment.