From 044a0f7adfbfadb34abb1700c095c78c63de539c Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Fri, 7 Aug 2026 12:13:13 +0300 Subject: [PATCH] ++ fix duplicate required providers for brusnika-stage rabbitmq --- live/terragrunt.hcl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/live/terragrunt.hcl b/live/terragrunt.hcl index bbe4cc7..3a53f99 100644 --- a/live/terragrunt.hcl +++ b/live/terragrunt.hcl @@ -40,9 +40,17 @@ terraform { vault = { source = "hashicorp/vault", version = "~> 4.2" } kafka = { source = "Mongey/kafka", version = "0.10.4" } postgresql = { source = "cyrilgdn/postgresql", version = "~> 1.21" } +%{if !(path_relative_to_include() == "rabbitmq" && get_env("INFRA_ENV", "") == "brusnika-stage")~} + # rabbitmq module >= v1.0.0 (brusnika-stage only, terraform-modules/rabbitmq) + # declares its own required_providers - excluded here for that one unit to + # avoid "Duplicate required providers configuration". Every other unit and + # every other environment keeps this entry unchanged. rabbitmq = { source = "cyrilgdn/rabbitmq", version = "~> 1.8" } +%{endif~} minio = { source = "aminueza/minio", version = "~> 2.0" } +%{if !(path_relative_to_include() == "rabbitmq" && get_env("INFRA_ENV", "") == "brusnika-stage")~} random = { source = "hashicorp/random", version = "~> 3.1" } +%{endif~} tls = { source = "hashicorp/tls", version = "~> 4.0" } } }