Terraform v0.9.8
Please list the resources as a list, for example:
I have a null_resource which has a few triggers and a bunch of file provisioners.
Things were working fine in v0.9.6
Now with v0.9.8 when I do plan, it complains:
- * null_resource.data_dir: Must provide one of 'content' or 'source'
Seems to be something similar to
Regards,
Shantanu
Switching my binary back to v0.9.6 has made it work.
Duplicate of https://github.com/hashicorp/terraform/issues/15177
Hi,
After looking at @onorua 's comment, I closely examined my configuration.
I thought it was something to do with the null_resource
Actually, the problem is:
provisioner "file" {
content = "${data.template_file.test.rendered}"
destination = "foo"
}
Changing it to the following makes the plan warning go away, but doesn't mean the same, so the problem remain (overall)
provisioner "file" {
content = "boo"
destination = "foo"
}
For my use case, I have variables substituted in the template_file.
Regards,
Shantanu
Ok, so I have changed by "data template_file" to be used directly in the "content" block of the file provisioner, but this doesn't detect if I make changes in the "content =" line.
I had previously set a trigger on the sha256 of the template file which I was using, so this breaks my current workflow. 😢 😞
Hope this gets fixed soon,
Regards,
Shantanu
This is fixed in 0.9.9 :wink:
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Ok, so I have changed by "data template_file" to be used directly in the "content" block of the file provisioner, but this doesn't detect if I make changes in the "content =" line.
I had previously set a trigger on the sha256 of the template file which I was using, so this breaks my current workflow. 😢 😞
Hope this gets fixed soon,
Regards,
Shantanu