https://pulumi.com logo
#general
Title
# general
f

future-window-78560

03/12/2022, 1:33 PM
Hey team! Any example, way, or API doc for mounting filestore to GCE through pulumi???
p

prehistoric-activity-61023

03/13/2022, 9:55 AM
Classic or native prodiver? If you’re using classic, try to search for terraform example and simply “translate” it to pulumi 🙂 (there’s a tf2pulumi tool but I usually write it manually and use the terraform example as a manual).
Hmm, I guess it might be trickier than I thought as all online tutorials suggests mounting filestore using bash commands. I wonder if there’s a
remote-exec
counterpart in pulumi that could login using SSH and run some commands remotely. Alternatively, I wonder if you could reuse
metadata_startup_script
to mount the filestore storage on startup: https://www.pulumi.com/registry/packages/gcp/api-docs/compute/instance/#metadata_startup_script_python
e

echoing-dinner-19531

03/13/2022, 7:02 PM
I wonder if there’s a
remote-exec
counterpart in pulumi
There is, https://www.pulumi.com/registry/packages/command/api-docs/remote/command/
p

prehistoric-activity-61023

03/14/2022, 7:56 AM
Thx @echoing-dinner-19531 for the link!