chef_data_bag_item

    0

    0

    lucycodes42

    Terraform snippets

    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
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.