sparse-intern-71089
08/04/2018, 5:39 PMstocky-spoon-28903
08/04/2018, 5:40 PMparent
of all of the resources to the component instance, but donβt set the component instantiation itselfbig-piano-35669
Stack
component if you don't specify one, so you did the right thing here.stocky-spoon-28903
08/04/2018, 5:41 PMstocky-spoon-28903
08/04/2018, 5:41 PMbig-piano-35669
import { runtime } from "@pulumi/pulumi";
...
new SomeResource(..., { parent: runtime.getRootResource() });
This might work, depending on the nature of the bug. If the bug is that we're erasing the root resource (Stack
) too soon, then this might lead to the same result.big-piano-35669
stocky-spoon-28903
08/04/2018, 5:44 PMstocky-spoon-28903
08/04/2018, 5:45 PMstocky-spoon-28903
08/04/2018, 5:46 PMbig-piano-35669
stocky-spoon-28903
08/04/2018, 5:47 PMstocky-spoon-28903
08/04/2018, 5:47 PMbig-piano-35669
@pulumi/pulumi
module loaded. This can happen depending on how NPM decides to resolve semvers.
One last thing you could do to help determine if this is the issue; can you run find node_modules -name 'pulumi
from the root of your program, and let me know what it returns?stocky-spoon-28903
08/04/2018, 5:49 PM~/Code/pulumi/pulumi-vault-test master*
β― find node_modules -name 'pulumi'
node_modules/@pulumi/pulumi
stocky-spoon-28903
08/04/2018, 5:49 PMnpm link
, so it also has a copy of @pulumi/pulumi
therebig-piano-35669
find -L node_modules -name 'pulumi'
print multiple?stocky-spoon-28903
08/04/2018, 5:50 PMmaster
stocky-spoon-28903
08/04/2018, 5:51 PMstocky-spoon-28903
08/04/2018, 5:51 PMβ― find -L node_modules -name 'pulumi'
node_modules/@pulumi/pulumi
node_modules/@operator-error/pulumi-lambda-cert/node_modules/@pulumi/pulumi
big-piano-35669
big-piano-35669
stocky-spoon-28903
08/04/2018, 5:53 PMstocky-spoon-28903
08/04/2018, 5:53 PMstocky-spoon-28903
08/04/2018, 5:54 PMruntime.getRootResource()
works great:big-piano-35669
stocky-spoon-28903
08/04/2018, 5:58 PMstocky-spoon-28903
08/04/2018, 7:29 PMstocky-spoon-28903
08/04/2018, 7:29 PMType Name Plan Info
+ pulumi:pulumi:Stack pulumi-vault-test-vault-test-dev create.
+ ββ operator-error:aws:LambdaCert algo-vault-lambda-cert create
+ β ββ aws:iam:Role algo-vault-lambda-cert-function-role create
+ β β ββ aws:iam:RolePolicy algo-vault-lambda-cert-function-policy create
+ pulumi:pulumi:Stack pulumi-vault-test-vault-test-dev create..
+ β ββ aws:s3:Bucket algo-vault-lambda-cert-bucket create
+ β ββ aws:lambda:Function algo-vault-lambda-cert-function create
+ β β ββ aws:lambda:Permission algo-vault-lambda-cert-permission create
+ pulumi:pulumi:Stack pulumi-vault-test-vault-test-dev create
+ β ββ aws:cloudwatch:EventTarget algo-vault-lambda-cert-target create
+ ββ operator-error:aws:Vpc algo-vault create
+ β ββ aws:ec2:Vpc algo-vault-vpc create
+ β ββ aws:ec2:VpcDhcpOptions algo-vault-dhcp-options create
+ β β ββ aws:ec2:VpcDhcpOptionsAssociation algo-vault-dhcp-options-assoc create
+ β ββ aws:ec2:InternetGateway algo-vault-igw create
+ β ββ aws:route53:Zone algo-vault-private-hosted-zone create
+ β ββ aws:iam:Role algo-vault-flow-logs-role create
stocky-spoon-28903
08/04/2018, 7:29 PM