diff --git a/modules/pricing/state_and_plan_content_from_json.tf b/modules/pricing/state_and_plan_content_from_json.tf index 7ccf114..13d5509 100644 --- a/modules/pricing/state_and_plan_content_from_json.tf +++ b/modules/pricing/state_and_plan_content_from_json.tf @@ -55,7 +55,7 @@ locals { instances_map = local.input_type == "plan" ? local.normalized_plan_instances : local.normalized_state_instances - instances_stripped_keys = local.input_type == "empty" ? [] : concat([ + instances_stripped_keys = local.input_type == "empty" || length(local.instances_map) == 0 ? [] : concat([ for k, v in local.instances_map : setproduct([k], keys(v)) ]...)