Ive been latently considering this problem more and I have 2 ideas to try:
-
the
local.service_list
compares key entries to!= null
because I used to use terraform custom objects… -
The problem could be due to the fact that I’m passing the local to a submodule as a variable. Variables in TF are treated differently at
plan
and are not capable of waiting. hence why the error is related to the ARC sub-modulevar.service_list
and not the root modulelocal.service_list
where the list is initially calculated. I may try to extract the resources from a sub-module and see if that fixes it…