Skip to content

Commit

Permalink
Merge pull request #989 from tsmithv11/patch-26
Browse files Browse the repository at this point in the history
Update CKV_AZURE_167 for azurerm 4 changes
  • Loading branch information
JBakstPaloAlto authored Nov 18, 2024
2 parents b06f7a4 + eb9c0a2 commit bf9ec79
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 below 4.0
+ retention_policy {
+ enabled = true
+ days = 7
+ }
# If using azurerm version 4.0 and above
+ retention_policy_in_days = 7
}
----

0 comments on commit bf9ec79

Please sign in to comment.