https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

06/06/2019, 9:26 PM
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

white-balloon-205

06/06/2019, 9:57 PM
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.