An environment is a container for Chef nodes that share a set of attribute values and may have a set of version constraints for which cookbook versions may be used on its nodes.
resource "chef_environment" "example" { name = "example-environment" }
The following arguments are supported:
name
- (Required) The unique name to assign to the environment. This name will be used when nodes are created within the environment. description
- (Optional) A human-friendly description of the environment. If not set, a placeholder of "Managed by Terraform" will be set. default_attributes_json
- (Optional) String containing a JSON-serialized object containing the default attributes for the environment. override_attributes_json
- (Optional) String containing a JSON-serialized object containing the override attributes for the environment. cookbook_constraints
- (Optional) Mapping of cookbook names to cookbook version constraints that should apply for this environment. This resource exports no further attributes.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/chef/r/environment.html