--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/0687817c-794e-4d80-b1e3-11542885a269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/c30abfb2-29c2-4bac-8c74-ef166ae83588%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/97d7a56a-0761-43f1-903b-075464866c05%40googlegroups.com.
As you could clearly see from my first example I invoke user_data ... or rather I'm trying to invoke it from terraform. User_data is going to install whois during the bootstrap process. I can run remote-exec or even provision a file and then run remote-exec the thing is... I don't want to use SSH connection at all. By passing a data to user_data my 'script' runs from the cloud-init which doesn't require any SSH connection. It's the part of the booting process (or rather instance creation).
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/95f73cb6-f81f-4b95-8f0a-5dc243c0a302%40googlegroups.com.
As somebody else pointed out earlier the heredoc you have does appear to put space in front of the hashbang, #!/bin/bash. In most of our configurations we use data.template_file and a file rather than a heredoc.data "template_file" "user_data" {
template = "${file("./somefile.sh.tpl")}"...}probably makes more sense for you if it is going to be a real script
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CACRhdyaiKfDypGwkym3RzrvN-w4%2B27xre4%2B4263KiYROq6A_cA%40mail.gmail.com.