0
0
llucycodes42
This code defines a data bag named "example-data-bag" and sets the content_json attribute to a JSON string that declares that the data bag contains an item with the id "example-item". The items in a data bag can be arbitrarily complex, and the data bag can contain any number of items.
Shortcut: tf_chef_data_bag_item
resource "chef_data_bag_item" "${MyResource}" {
data_bag_name = "example-data-bag"
content_json = <<EOT
{
"id": "example-item",
"any_arbitrary_data": true
}
EOT
}