https://pulumi.com logo
#general
Title
# general
f

faint-vegetable-61837

03/05/2019, 7:11 PM
Hi, is there a way to add a new output to a stack? I remember it worked once with
pulumi up
- a new output was added to the stack, but if I try to do it now it does not work
w

white-balloon-205

03/05/2019, 7:12 PM
Adding a new top-level export should work. If the value is
undefined
, it will not show up. And there may be cases where it doesn't show up during the preview - but it should be included in the results of the
update
.
f

faint-vegetable-61837

03/05/2019, 7:13 PM
It did not work when I tried to save ARN of an existing resource with apply, but worked when I just outputted the whole object
w

white-balloon-205

03/05/2019, 7:14 PM
Hmm - that doesn't sound expected.
f

faint-vegetable-61837

03/05/2019, 7:15 PM
Copy code
export const instanceRole = eksCluster.instanceRole;
worked, but
Copy code
export const instanceRoleARN = eksCluster.instanceRole.apply(role => role.arn);
did not
w

white-balloon-205

03/05/2019, 7:19 PM
Interesting. That should work. Would you mind opening an issue for this? We should look into it.
f

faint-vegetable-61837

03/05/2019, 7:20 PM
Looks like it is alread open: #1429