late-airplane-27955
11/12/2024, 8:38 PMerror: Duplicate resource URN 'urn:pulumi:<stuff>::pulumi:pulumi:Stack::<stuff>'; try giving it a unique name
anyone know if there's a way around this? The entire stack is the same, its just that it's being instantiated slightly differentlylate-airplane-27955
11/12/2024, 8:43 PMpulumi preview -j --show-sames
{
"steps": [
{
"op": "same",
"urn": "urn:pulumi:prod::<stuff>::pulumi:pulumi:Stack::<stuff>",
"oldState": {
"urn": "urn:pulumi:prod::<stuff>::pulumi:pulumi:Stack::<stuff>",
"custom": false,
"type": "pulumi:pulumi:Stack",
"created": "0001-01-01T00:00:00Z",
"modified": "0001-01-01T00:00:00Z"
},
"newState": {
"urn": "urn:pulumi:prod::<stuff>::pulumi:pulumi:Stack::<stuff>",
"custom": false,
"type": "pulumi:pulumi:Stack",
"created": "0001-01-01T00:00:00Z",
"modified": "0001-01-01T00:00:00Z"
},
"detailedDiff": null
}
],
"diagnostics": [
{
"urn": "urn:pulumi:prod::<stuff>::pulumi:pulumi:Stack::<stuff>",
"message": "error: Duplicate resource URN 'urn:pulumi:prod::<stuff>::pulumi:pulumi:Stack::<stuff>'; try giving it a unique name\n",
"severity": "error"
}
],
"duration": 643302009,
"changeSummary": {
"same": 1
}
}
late-airplane-27955
11/12/2024, 9:23 PMStack
, which I didn't do from the start. Now the stack has a lot of resources, and I'd very reluctant to tear everything down.little-cartoon-10569
11/12/2024, 9:26 PMlate-airplane-27955
11/12/2024, 10:00 PMlate-airplane-27955
11/12/2024, 10:01 PMpublic class MyStack : Stack
{
public MyStack()
{
...
this.Url = resource.Url;
}
// 'url' is the output name. By default, it would take the property name 'Url'.
[Output("url")] Output<string> Url { get; set; }
}
I'd love it if there was a python-style "stack.export" somewhere in the c# sdk toolittle-cartoon-10569
11/12/2024, 10:09 PMlate-airplane-27955
11/12/2024, 11:07 PM