Closed PartTimeLegend closed 6 years ago
Is this still an issue? The code: https://github.com/terraform-providers/terraform-provider-chef/blob/62dd4f5790b407fca7ce1584ef7871d51dea30d4/chef/resource_node.go#L54-L58 it's marked as optional.
Not an issue for me - with this HCL:
resource "chef_node" "test" {
name = "test"
It creates the node fine:
$ terraform version
Terraform v0.11.4
+ provider.chef v0.1.0
$ terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ chef_node.test
id: <computed>
automatic_attributes_json: "{}"
default_attributes_json: "{}"
environment_name: "_default"
name: "test"
normal_attributes_json: "{}"
override_attributes_json: "{}"
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
chef_node.test: Creating...
automatic_attributes_json: "" => "{}"
default_attributes_json: "" => "{}"
environment_name: "" => "_default"
name: "" => "test"
normal_attributes_json: "" => "{}"
override_attributes_json: "" => "{}"
chef_node.test: Creation complete after 1s (ID: test)
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
In the documentation you can see that
run_list
is marked as optional. However when using the Chef provider you will get the message"run_list": required field is not set
.If you look at the Chef documentation, it states that empty run_list is fine
Terraform version: v0.9.11