This message was deleted.
# general
s
This message was deleted.
b
you shouldn't need to use
apply
here, you can just export
ec2Instancr.publicIp
because it's already an output
l
During preview, exports show up as
output<string>
because the values are unknown. It looks like when you perform the update, those values are undefined after the program runs.
but when I use exports.publicIp = ec2Instance.publicIp, It does not work, also output nothing
l
b
thx, I will look this doc for more info
after some try, my AWS EC2 is spot instance, it is not eip but stack output is nothing as before. how can I output public dns?
r
I'm also curious about this problem