That first code snippet will work. You can export ...
# general
b
That first code snippet will work. You can export a promise as an output and it will be recorded by Pulumi as a stack output.