When creating a `pulumi.dynamic.Resource`, how uni...
# general
f
When creating a
pulumi.dynamic.Resource
, how unique does the
id
returned from the
create
method have to be? Should it look like the Pulumi urn strings (i.e.
urn:pulumi:prod::vm-scaler::pulumi:pulumi:Stack::vm-scaler-prod
)?
Are there any character restrictions on the
id
?
w
I do not believe Pulumi itself enforces and character restrictions on
id
. I believe it is an opaque string. It is intended for your use - not Pulumi’s. The main goal is that your create can return an
id
, and that
id
will get passers back to calls like
delete
so that you can delete the right resource in the backing cloud provider.