terraform: Fixing applyWalkFn