https://pulumi.com logo
Title
w

wooden-room-54680

03/15/2021, 5:49 PM
I want to store configuration files in an EBS volume, the configuration files content is generated at build time from pulumi. What's the best way to copy to configuration file to the EBS volume? Any sample I can look at?
l

little-cartoon-10569

03/15/2021, 6:44 PM
You can use any technique from your favorite programming class to upload it, if it happens every time you run
up.
If it's a particular file and you want Pulumi to upload it only when it changes, you need the FileAsset class
I couldn't find an EBS example, but here's a FileAsset example using S3: https://github.com/pulumi/examples/blob/master/aws-ts-static-website/index.ts
w

wooden-room-54680

03/15/2021, 7:16 PM
Thank you, I think either way will work for me.