From 25e5dfd9b36a0dc337974354a7e59bac9a52a2c5 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Sat, 3 Oct 2026 18:40:08 +1000 Subject: [PATCH] Allow the mocked global ids during init --- environments/au/syd1/terragrunt.hcl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/environments/au/syd1/terragrunt.hcl b/environments/au/syd1/terragrunt.hcl index 3965ab1..4b38d93 100644 --- a/environments/au/syd1/terragrunt.hcl +++ b/environments/au/syd1/terragrunt.hcl @@ -34,7 +34,8 @@ locals { # Device types, device roles and the dhcp IPAM role are global objects owned by # the netbox-global unit; take their ids from it rather than create them twice. -# Ids are mocked for plan so a fresh estate can be planned before it is applied. +# Ids are mocked until the global unit is applied, so a fresh estate can still +# init and plan. dependency "global" { config_path = "../../global" @@ -43,7 +44,7 @@ dependency "global" { device_role_ids = { for r in local.wanted_device_roles : r => 0 } dhcp_role_id = 0 } - mock_outputs_allowed_terraform_commands = ["validate", "plan"] + mock_outputs_allowed_terraform_commands = ["init", "validate", "plan"] } terraform {