sparse-intern-71089
11/28/2023, 9:38 PMlittle-cartoon-10569
11/28/2023, 9:45 PMlittle-cartoon-10569
11/28/2023, 9:46 PMnew StackReference()
and look for the duplicate.broad-doctor-18421
11/28/2023, 9:50 PMimport sys
sys.path.append("../../")
from account.__main__ import Outputs
Where Outputs are an enum of the output keys.
I'm not sure how else to import something from a sister python project, or if this is the culprit.little-cartoon-10569
11/28/2023, 9:52 PMlittle-cartoon-10569
11/28/2023, 9:53 PMbroad-doctor-18421
11/28/2023, 10:06 PMlittle-cartoon-10569
11/28/2023, 10:07 PMlittle-cartoon-10569
11/28/2023, 10:08 PMlittle-cartoon-10569
11/28/2023, 10:08 PMbroad-doctor-18421
11/28/2023, 10:10 PMpulumi.StackReference(name="donkey", stack_name="organization/vpc/dev")
pulumi.StackReference(name="mule", stack_name="organization/vpc/dev")
Those named stack refs aren't in the examples I can find anywhere but it's in the StackReference classbroad-doctor-18421
11/28/2023, 10:10 PMbroad-doctor-18421
11/28/2023, 10:10 PMlittle-cartoon-10569
11/28/2023, 10:10 PMIs there a reason why a singleton pattern wouldn't work with python here?This isn't singleton. You're creating two different objects. The singleton pattern would create only one object, and return it anywhere anyone wanted it.
little-cartoon-10569
11/28/2023, 10:11 PMechoing-dinner-19531
11/28/2023, 10:30 PMso I could doYeh that code is fine, the two references are to the same stack but they have unique logical names for the deployment engine to track.
echoing-dinner-19531
11/28/2023, 10:31 PMbroad-doctor-18421
11/28/2023, 10:31 PMbroad-doctor-18421
11/28/2023, 10:32 PMlittle-cartoon-10569
11/28/2023, 10:33 PMechoing-dinner-19531
11/28/2023, 10:35 PMechoing-dinner-19531
11/28/2023, 10:35 PMpulumi.StackReference(f"stackref-{current_stack}, name=f"organization/vpc/{vpc_stack_name}")
I thinkbroad-doctor-18421
11/28/2023, 10:37 PM+ ├─ aws:cloudwatch:LogGroup /ec2/authentication/stage/app create
+ ├─ aws:iam:Role ec2_instance_profile_role create
└─ pulumi:pulumi:StackReference donkey 1 error
but this error was a bit far back in my terminal history so maybe it's not trustworthylittle-cartoon-10569
11/28/2023, 10:38 PMbroad-doctor-18421
11/28/2023, 10:40 PMlittle-cartoon-10569
11/28/2023, 10:41 PM