Trying to understand the role of the id in a Dynam...
# general
w
Trying to understand the role of the id in a Dynamic resource provider. All examples use "foo" or just some hardcoded string. Is this the correct way? Or should each instance get a randomised something (Guid?) ? From: https://www.pulumi.com/docs/iac/concepts/resources/dynamic-providers/
Copy code
const myProvider: pulumi.dynamic.ResourceProvider = {
    async create(inputs) {
        return { id: "foo", outs: {}};
    }
}
e
Generally its a unique key so in your update/delete methods you can use it to work out what actual backing resource to operate on. But the engine doesn't really do anything with it.