Closed dstockton closed 4 years ago
This is due to #56 changing the schema, such that aggregates no longer refer to the composed pieces by ID, but rather as JSON fragments. In short, as the error message says, any place you were referring to the "id" attribute of an Ignition data source, refer instead to its "rendered" attribute.
I am already referring by rendered :(
Ah, well, in that case, perhaps you can share a few fragments of your configuration so that we can help diagnose what's now going wrong. It looks like we're winding up trying to consume invalid JSON, so maybe we're feeding the wrong value in the wrong place.
This was my misunderstanding... because the error was referencing this resource...
resource "google_compute_instance_template" "foo" {
...
metadata {
user-data = "${data.ignition_config.foo_ignition.rendered}"
}
...
}
but actually the problem is with the definition of the foo_ignition
resource itself 🤦♂.
I just tried it and it works fine with 1.2. Thanks for your replies & patience!!