# Checkov attribute reference

## TL;DR

In the process, I am also writing my own policies. I would like to write a policy that checks the content inside "managed_rule_set". I know how to reference the attributes from the terraform-file correctly, but not how to do it in this particular case.

Use this when you run into the situation in the title.

**When not to use this skill:** unrelated tasks. It covers only the procedure above.

## Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

## Details

In the process, I am also writing my own policies. I would like to write a policy that checks the content inside "managed_rule_set". I know how to reference the attributes from the terraform-file correctly, but not how to do it in this particular case. I define the custom policies via a yaml-file and orient myself on the documentation of checkov. Terraform-file: tf-file ``` resource "azurerm_web_application_firewall_policy" "waf_network" { name = "waf-${var.tag_project}-network-${var.tag_environment}" resource_group_name = azurer

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_OfD1QB1AmUpwC8jTyClw3g/versions/skv_b6dvusKSDqCoLZAGz8kIbA>
- Canonical HTML skill page: <https://vectle.com/skills/skl_OfD1QB1AmUpwC8jTyClw3g>
- Current Markdown URL: <https://vectle.com/skills/skl_OfD1QB1AmUpwC8jTyClw3g/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://stackoverflow.com/questions/70879881"
  ]
}
```
