sparse-intern-71089
02/19/2019, 3:29 PMimportant-leather-28796
02/19/2019, 3:31 PMgentle-diamond-70147
02/19/2019, 3:35 PMgentle-diamond-70147
02/19/2019, 3:36 PMimportant-leather-28796
02/19/2019, 3:36 PMimportant-leather-28796
02/19/2019, 3:37 PMTo publish values that you wish to access outside your application, create a stack output via module exports.
important-leather-28796
02/19/2019, 3:38 PMimportant-leather-28796
02/19/2019, 3:38 PMimportant-leather-28796
02/19/2019, 3:41 PM// Export the Deployment name
export const deploymentName = deployment.metadata.apply(m => m.name);
and the comment isn’t helpful. I can see it is an export, but will pulumi fail without it? or is it simply to expose internals for reuse with my potential other code?important-leather-28796
02/19/2019, 3:44 PM3 unchanged
resources, so it appears these exports are typical ts module exports for reuse. Unless I’m wrong, I’d suggest a change to the doc code - exports are only needed if they are reused. In this case it looks like they are not (which led to my confusion)important-leather-28796
02/19/2019, 3:48 PMgentle-diamond-70147
02/19/2019, 3:55 PMgentle-diamond-70147
02/19/2019, 3:55 PMgentle-diamond-70147
02/19/2019, 3:56 PMStackReference
so you can break apart your infrastructure into different "deployable units" and manage them independently.gentle-diamond-70147
02/19/2019, 3:56 PMgentle-diamond-70147
02/19/2019, 3:57 PMimportant-leather-28796
02/19/2019, 3:57 PM