github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/website/source/docs/providers/chef/r/data_bag.html.markdown (about) 1 --- 2 layout: "chef" 3 page_title: "Chef: chef_data_bag" 4 sidebar_current: "docs-chef-resource-data-bag" 5 description: |- 6 Creates and manages a data bag in Chef Server. 7 --- 8 9 # chef\_data\_bag 10 11 A [data bag](http://docs.chef.io/data_bags.html) is a collection of 12 configuration objects that are stored as JSON in Chef Server and can be 13 retrieved and used in Chef recipes. 14 15 This resource creates the data bag itself. Inside each data bag is a collection 16 of items which can be created using the ``chef_data_bag_item`` resource. 17 18 ## Example Usage 19 20 ``` 21 resource "chef_data_bag" "example" { 22 name = "example-data-bag" 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `name` - (Required) The unique name to assign to the data bag. This is the 31 name that other server clients will use to find and retrieve data from the 32 data bag. 33 34 ## Attributes Reference 35 36 The following attributes are exported: 37 38 * `api_url` - The URL representing this data bag in the Chef server API.