// CreateInstance creates an instance and adds it to the resource
CreateInstance creates an instance and adds it to the resource
// CreateInstance creates an instance and adds it to the resource
func (rs *Resource) CreateInstance(key addrs.InstanceKey) *ResourceInstance {
	is := NewResourceInstance()
	rs.Instances[key] = is
	return is
}
func ( rs * Resource ) CreateInstance ( key addrs . InstanceKey ) * ResourceInstance { is := NewResourceInstance ( ) rs . Instances [ key ] = is return is }
CreateInstance creates an instance and adds it to the resource
CreateInstance creates an instance and adds it to the resource