1
votes

I want to use /bin/bash instead of the default /bin/sh for ubuntu. How do I set the default interpreter for remote-exec?

I know I can put it as part of a script and then upload the script, but I prefer knowing how to do it in-line in the "best" terraform way.

1
Did you find the answer to this ? @lucas-kauffman - Shahid ali Khan

1 Answers

0
votes

This is a gcp exemple but it should remain true for others:

metadata_startup_script = <<SCRIPT
#!/bin/bash
echo "I'm executing myself at startup"
SCRIPT

You declare the start or the script <

Hope this helps.