Update instance metadata

Updates the metadata map for an instance.