sparse-intern-71089
01/13/2022, 4:41 PMechoing-dinner-19531
01/13/2022, 4:52 PM--parent <urn>
option, pass the component resources urn to that when importing.limited-rainbow-51650
01/13/2022, 4:53 PMechoing-dinner-19531
01/13/2022, 4:56 PMlimited-rainbow-51650
01/13/2022, 5:00 PMmicroscopic-dress-1605
01/13/2022, 5:27 PMmicroscopic-dress-1605
01/13/2022, 5:28 PMechoing-dinner-19531
01/13/2022, 5:45 PMBut what if the parent does not yet exist? Is there a way to create a new parent?I'm not sure, I feel like we should have an answer for importing a component resource but I don't think there's anyway to do it right now except manually editing the pulumi state file. It's probably worth raising an issue at https://github.com/pulumi/pulumi/issues/ explaining the component resource your trying to import
microscopic-dress-1605
01/13/2022, 6:41 PMimport
directive in the code. Worked as a charm.ambitious-mouse-72396
02/23/2022, 8:32 PMsequence
is calculated or can it always be 1 when I add a component directly to the state
{
"urn": "urn:pulumi:mystack::muyproject::dennis:modules:backend-analytics::backend-analytics",
"custom": false,
"type": "dennis:modules:backend-analytics",
"parent": "urn:pulumi:mystack::myproject::pulumi:pulumi:Stack::mystack",
"sequenceNumber": 1
}
echoing-dinner-19531
02/23/2022, 8:33 PMechoing-dinner-19531
02/23/2022, 8:34 PMambitious-mouse-72396
02/23/2022, 9:04 PMechoing-dinner-19531
02/23/2022, 9:16 PMambitious-mouse-72396
02/24/2022, 1:37 PM