terraform: Check module config for resource instead of state