diff --git a/terraform/state.go b/terraform/state.go index 8bab90c95..d14ae043b 100644 --- a/terraform/state.go +++ b/terraform/state.go @@ -377,6 +377,12 @@ func (m *ModuleState) prune() { delete(m.Resources, k) } } + + for k, v := range m.Outputs { + if v == config.UnknownVariableValue { + delete(m.Outputs, k) + } + } } func (m *ModuleState) sort() {