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

Unable to run due to Error parsing attributes_json #64

Open
markcallen opened this issue Dec 29, 2016 · 2 comments
Open

Unable to run due to Error parsing attributes_json #64

markcallen opened this issue Dec 29, 2016 · 2 comments

Comments

@markcallen
Copy link
Contributor

I've cloned the repo and ran:

terraform plan

get the following error message:

There are warnings and/or errors related to your configuration. Please
fix these before continuing.

Errors:

 * null_resource.chef_chef-server: Error parsing attributes_json: invalid character 'D' after top-level value

terraform --version
Terraform v0.8.2
on OSX 10.11.6

Saw your issue logged at terraform hashicorp/terraform#10788

Solve this by downloading and using 0.7.13

@mengesb
Copy link
Owner

mengesb commented Jan 2, 2017

You're correct @markcallen ; unfortunately there's no current resolution. For whatever reason it isn't properly identifying the calculated (or rendered) value of the data source. From what we can see, 8.0.0-beta1 is the latest version that doesn't have this issue. However these plans were written circa 0.7.x so as indicated, 0.7.13 will work fine. Waiting on a resolution or further debugging; my attempts to debug why this occurs hasn't been successful.

@mengesb
Copy link
Owner

mengesb commented Jan 30, 2017

Presently my work-around for this is to write out the attributes.json/dna.json file ahead of time and then source it for the chef-client run. Since sourcing is at the time of execution, all that it has to be is valid json to start. I'll be updating these changes and releasing a new version.

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