Hey team! Any example, way, or API doc for mountin...
# general
f
Hey team! Any example, way, or API doc for mounting filestore to GCE through pulumi???
p
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
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
Thx @echoing-dinner-19531 for the link!