Skip to content

Commit

Permalink
Update CKV_AZURE_167 for azurerm 4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmithv11 authored Nov 15, 2024
1 parent 63be263 commit 53e24e2
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ This policy checks if the retention policy is enabled for Azure Container Regist
[source,terraform]
----
resource "azurerm_container_registry" "example" {
name = "exampleContainerRegistry"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
sku = "Premium"
admin_enabled = false
...
# If using azurerm version <4
+ retention_policy {
+ enabled = true
+ days = 7
+ }
# If using azurerm version 4
+ retention_policy_in_days = 7
}
----

0 comments on commit 53e24e2

Please sign in to comment.