-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiline/File Based User Data for Amazon EC2 Instances #150
Comments
Adding userdata as a single line. Raised (hashicorp/terraform#150) in the hopes that this can later be cleaned up.
a HEREDOC style of usage would be a great enhancement as it would make user_data strings much more readable in the *.tf files. |
even better would be to load them from external files user_data = "./my_user_data_file" That would keep the *.tf much cleaner |
Agreed. It would be nice if both were an option. |
I opened this a few days ago, issue #145, perhaps it should be marked as a duplicate? |
@mattsoftware Indeed it should. |
For Amazon EC2 instances, if the userdata field is spread over more than one line, you get the following error:
It would be nice to be able to enter multiline userdata or be able to supply an external file.
The text was updated successfully, but these errors were encountered: