FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

chef_data_bag_item

A data bag is a collection of configuration objects that are stored as JSON in Chef Server and can be retrieved and used in Chef recipes.

This resource creates objects within an existing data bag. To create the data bag itself, use the chef_data_bag resource.

Example Usage

resource "chef_data_bag_item" "example" {
    data_bag_name = "example-data-bag"
    content_json = <<EOT
{
    "id": "example-item",
    "any_arbitrary_data": true
}
EOT
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io