-
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
terraform crash with ec2 instance when trying to use user_data with a map #460
Comments
Thanks, I see you updated the title, is that the new way to get a repro? Can I just set some user data to a map and get this with our without state? |
https://gist.github.com/solarce/818f06a0d7564fcd508e should do it |
I realize that http://www.terraform.io/docs/providers/aws/r/instance.html#user_data doesn't say it's a map, but I assumed it would be one and I haven't looked at the source code, so if I'm going down the wrong path to use user_data, please do let me know |
User data is a string. Tags are a map. The issue here looks like our validator is not catching the invalid type for user data. Should be easy enough to fix, but haven't looked into it yet. |
What should it look like? (Can you tell I haven't used user data much?) I'm trying to replace passing the following to
|
Heh, this should help: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html |
Thanks. For completeness sake.
variable
resource
argument |
Fixed crash |
crash.log from when I tried to launch a new instance, when trying to use user_data with a map
The text was updated successfully, but these errors were encountered: