plain-quill-22197
03/30/2021, 1:32 PMplain-quill-22197
03/30/2021, 1:32 PMawait Pulumi.Deployment.RunAsync<AutoDevOps.DefaultStack>();
plain-quill-22197
03/30/2021, 1:32 PMbrave-planet-10645
03/30/2021, 1:33 PMautoDevOps.Urn
?brave-planet-10645
03/30/2021, 1:33 PMprehistoric-coat-10166
03/30/2021, 1:35 PMStack
inside a program might be a problem? I recall seeing similar error which was caused by calling new StackClass()
inside a programplain-quill-22197
03/30/2021, 1:35 PMbrave-planet-10645
03/30/2021, 1:35 PMplain-quill-22197
03/30/2021, 1:36 PMusing var appStack = await LocalWorkspace.CreateOrSelectStackAsync(stackArgs);
brave-planet-10645
03/30/2021, 1:36 PMDefaultStack
is inheriting from Stack then that's why you're getting the duplicate resource urn errorplain-quill-22197
03/30/2021, 1:36 PMplain-quill-22197
03/30/2021, 1:36 PMplain-quill-22197
03/30/2021, 1:39 PMbrave-planet-10645
03/30/2021, 1:43 PMbrave-planet-10645
03/30/2021, 1:43 PMbrave-planet-10645
03/30/2021, 1:43 PMplain-quill-22197
03/30/2021, 1:44 PMbored-oyster-3147
03/30/2021, 1:52 PMPulumi.Stack
class in an inline function than you must do PulumiFn.Create<TStack>()
because if you provide just a delegate than the pulumi engine is wrapping it in a Pulumi.Stack
resource internally and you can only have 1 Pulumi.Stack
resource declaredbored-oyster-3147
03/30/2021, 1:54 PMDeployment.RunAsync(async () => { // declare resources });
instead of Deployment.RunAsync<TStack>();
plain-quill-22197
03/30/2021, 4:02 PMCreate
function, but I had to iterate a lot because of the "project name doesn't match" issueplain-quill-22197
03/30/2021, 4:02 PMplain-quill-22197
03/30/2021, 4:03 PMplain-quill-22197
03/30/2021, 4:17 PMroomote/cal-sync
plain-quill-22197
03/30/2021, 4:17 PM/
in one place but not in anotherbored-oyster-3147
03/30/2021, 4:28 PMplain-quill-22197
03/30/2021, 4:32 PMplain-quill-22197
03/30/2021, 4:32 PMplain-quill-22197
03/30/2021, 4:33 PMplain-quill-22197
03/30/2021, 4:33 PMplain-quill-22197
03/30/2021, 4:34 PM