Skip to content
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

Closed
funkymonkeymonk opened this issue Aug 5, 2014 · 5 comments
Closed

Multiline/File Based User Data for Amazon EC2 Instances #150

funkymonkeymonk opened this issue Aug 5, 2014 · 5 comments

Comments

@funkymonkeymonk
Copy link

For Amazon EC2 instances, if the userdata field is spread over more than one line, you get the following error:

Error loading config: error on line 33 at column 28: 'unexpected newline', character: '0x0a'

It would be nice to be able to enter multiline userdata or be able to supply an external file.

funkymonkeymonk added a commit to funkymonkeymonk/terraform-demo that referenced this issue Aug 5, 2014
Adding userdata as a single line. Raised (hashicorp/terraform#150) in the hopes that this can later be cleaned up.
@while1eq1
Copy link

a HEREDOC style of usage would be a great enhancement as it would make user_data strings much more readable in the *.tf files.

@while1eq1
Copy link

even better would be to load them from external files

user_data = "./my_user_data_file"

That would keep the *.tf much cleaner

@funkymonkeymonk
Copy link
Author

Agreed. It would be nice if both were an option.

@mattsoftware
Copy link

I opened this a few days ago, issue #145, perhaps it should be marked as a duplicate?

@while1eq1
Copy link

@mattsoftware Indeed it should.

@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants