best-xylophone-83824
08/09/2019, 1:57 PMwhite-balloon-205
aliases
on the instance of the component to adopt the existing resources without having to replace anything.
2059 is definitely the most direct solution to this scenario though.best-xylophone-83824
08/09/2019, 6:34 PMdummyResource(name, {}, { alias : pulumi.runtime.getRootResource, provider: mynewGlobalProvider})
? would it reparent all resources under dummy resource and as a result make all resources use new provider by default?white-balloon-205
best-xylophone-83824
08/09/2019, 7:48 PMclass DummyRoot extends pulumi.ComponentResource {
constructor(name: string, opts : pulumi.ComponentResourceOptions) {
super("dummy", name, {}, opts)
this.registerOutputs({})
}
}
new DummyRoot("dummy", { provider: provider, aliases: [pulumi.runtime.getRootResource() as Promise<pulumi.URN>] });
new gcp.compute.Network("vpc_network", {})
high-translator-22614
08/09/2019, 8:58 PMopts()
that inserted providers if there's no parent, eg:
foo.Bar('MyBar', ..., **opts())
white-balloon-205
shuffling data between stacksWhat precisely did you have in mind here? We have the following tools: 1. StackReference 2.
import
3. aliases
Depending on which versions of this you are trying to do - one or more of those should help?