I am provisioning aws infrastructure with the help of terraform script.

For example, I am creating four unix ec2 instance, Now I want to install tomcat in all 4 instance throw chef cookbook.

I want to run chef cookbook in terraform script and I tried with below code but it gives me errors.

```
resource "aws_instance" "LG" { ami = "XXXXXXXXXXXXX" instance_type = "XXXXXXXX" chef_role_name = ["../tomcat.json"]

Error: Unsupported argument

  on LG.tf line 16, in resource "aws_instance" "LG":
      chef_role_name  = ["../tomcat.json"]

```

Is this is correct way to call cookbook? can some one plz suggest.