Hi, is there a way to add a new output to a stack?...
# general
f
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
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
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
Hmm - that doesn't sound expected.
f
Copy code
export const instanceRole = eksCluster.instanceRole;
worked, but
Copy code
export const instanceRoleARN = eksCluster.instanceRole.apply(role => role.arn);
did not
w
Interesting. That should work. Would you mind opening an issue for this? We should look into it.
f
Looks like it is alread open: #1429