Skip to content

Commit

Permalink
add proper values via metadata (#888)
Browse files Browse the repository at this point in the history
* add proper values via metadata

* add name
  • Loading branch information
gaurav-gogia authored Jun 24, 2021
1 parent 0f0be20 commit 36ca6eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"policy_type": "azure",
"resource_type": "azurerm_managed_disk",
"template_args": {
"prefix": "reme_"
"prefix": "reme_",
"name": "checkDiskEncryption",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure that 'Unattached disks' are encrypted in Azure Managed Disk",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package accurics

{{.prefix}}{{.name}}{{.suffix}}[managed_disk.id] {
managed_disk := input.azurerm_managed_disk[_]
encryption_settings = managed_disk.config.encryption_settings[_]
encryption_settings := managed_disk.config.encryption_settings[_]
encryption_settings.enabled == false
}

Expand Down

0 comments on commit 36ca6eb

Please sign in to comment.