Hi folks, is there a way to read a file in an EC2 ...
# aws
l
Hi folks, is there a way to read a file in an EC2 instance after provisioning it? I want to upload this file to a S3 bucket then
b
you can do it with a dynamic provider, but I would do this using EC2 user data
l
@billowy-army-68599 Thanks for the suggestion, by the way, is there a way for Pulumi to wait for userdata to finish? So I can know if the file in S3 exists
s
Not that I can think of. Once the instance is provisioned, it's up to AWS to do the work and AWS doesn't notify back when the instance becomes available. You would have to create your own logic for that.
l
Yes. Finally, I went to implement my own one by letting userdata upload something in S3, and then I keep checking that in S3