github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/chef/r/environment.html.markdown (about) 1 --- 2 layout: "chef" 3 page_title: "Chef: chef_environment" 4 sidebar_current: "docs-chef-resource-environment" 5 description: |- 6 Creates and manages an environment in Chef Server. 7 --- 8 9 # chef_environment 10 11 An [environment](http://docs.chef.io/environments.html) is a container for 12 Chef nodes that share a set of attribute values and may have a set of version 13 constraints for which cookbook versions may be used on its nodes. 14 15 ## Example Usage 16 17 ```hcl 18 resource "chef_environment" "example" { 19 name = "example-environment" 20 } 21 ``` 22 23 ## Argument Reference 24 25 The following arguments are supported: 26 27 * `name` - (Required) The unique name to assign to the environment. This name 28 will be used when nodes are created within the environment. 29 * `description` - (Optional) A human-friendly description of the environment. 30 If not set, a placeholder of "Managed by Terraform" will be set. 31 * `default_attributes_json` - (Optional) String containing a JSON-serialized 32 object containing the default attributes for the environment. 33 * `override_attributes_json` - (Optional) String containing a JSON-serialized 34 object containing the override attributes for the environment. 35 * `cookbook_constraints` - (Optional) Mapping of cookbook names to cookbook 36 version constraints that should apply for this environment. 37 38 ## Attributes Reference 39 40 This resource exports no further attributes.