hashicorp / terraform-provider-chef

Terraform Chef provider
https://www.terraform.io/docs/providers/chef/
Mozilla Public License 2.0
12 stars 34 forks source link

Chef provider: add content_file for all resources #1

Open hashibot opened 7 years ago

hashibot commented 7 years ago

This issue was originally opened by @partamonov as hashicorp/terraform#4581. It was migrated here as part of the provider split. The original body of the issue is below.


With current implementation all roles/data bags items/envs should be specified inside .tf file.

This mean that to use it you have to move all roles/data bags items/envs inside .tf file, but in many cases these roles/data bags items/envs are stored in repositories and better approach (or additional available) is to read from file, with file() interpolation function.

Also for chef_data_bag_item we can use template_file to get content, but it's better to add this to documentation example.