code: func (s *SyncState) SetLocalValue(addr addrs.AbsLocalValue, value cty.Value) {
  	s.lock.Lock()
  	defer s.lock.Unlock()
  
  	ms := s.state.EnsureModule(addr.Module)
  	ms.SetLocalValue(addr.LocalValue.Name, value)
  }
docs: // SetLocalValue writes a given output value into the state, overwriting
  // any existing value of the same name.
  //
  // If the module containing the local value is not yet tracked in state then it
  // will be added as a side-effect.