https://pulumi.com logo
#python
Title
# python
b

brave-processor-54742

05/05/2022, 9:11 AM
Hi everyone! πŸ‘‹ Would someone have an idea on how to call a bash script in the
user_data
parameter, instead of writing a long string inside the code? I would like to use this bash script to add key pairs to my instances, because writing those inside the code looks tidy. Thanks! πŸ€Έβ€β™‚οΈ
b

billowy-army-68599

05/05/2022, 2:28 PM
They script unfortunately needs to be uploaded to the instance. Lots of people base64 encode it
You can always read from a file that's outside the code