code: func parseResourceAddressConfig(r *config.Resource) (*ResourceAddress, error) {
  	return &ResourceAddress{
  		Type:         r.Type,
  		Name:         r.Name,
  		Index:        -1,
  		InstanceType: TypePrimary,
  		Mode:         r.Mode,
  	}, nil
  }
docs: // parseResourceAddressConfig creates a resource address from a config.Resource