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

JSON Parse Error #66

Open
ackSec opened this issue Oct 18, 2017 · 1 comment
Open

JSON Parse Error #66

ackSec opened this issue Oct 18, 2017 · 1 comment

Comments

@ackSec
Copy link

ackSec commented Oct 18, 2017

I get the following parse error when running terraform plan/terraform init

Failed to load root config module: Error loading /.../terraform/tf_chef_server/main.tf: Error reading config for template_file[attributes-json]: parse error at 1:30: expected ")" but found invalid sequence "\\"

Currently using Terraform v0.10.7

It's a problem with this statement:

addons = "${join(",", formatlist("\\"%s\\"", split(",", var.chef_addons)))}"

@mengesb
Copy link
Owner

mengesb commented Nov 1, 2017

I believe previous to 0.8, it was necessary to double escape embedded double-quotes. That doesn't appear to be the case any more with current versions.. Admittedly this was created on 0.7.x era and much has changed.

I'll be looking at a larger overhaul of the code base soon to take into account newer interpolations available to solve for some things that are issues beyond this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants