diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 395404e8..60e89f35 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.88.0 + rev: v1.92.0 hooks: - id: terraform_fmt - id: terraform_docs @@ -24,7 +24,7 @@ repos: - '--args=--only=terraform_unused_required_providers' - id: terraform_validate - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: end-of-file-fixer diff --git a/main.tf b/main.tf index 96cc128f..84317650 100644 --- a/main.tf +++ b/main.tf @@ -156,7 +156,10 @@ module "alb" { associate_web_acl = try(var.alb.associate_web_acl, false) web_acl_arn = try(var.alb.web_acl_arn, null) - tags = var.tags + tags = merge( + try(var.alb.tags, {}), + var.tags + ) } ################################################################################