Skip to content

Instantly share code, notes, and snippets.

@techdecline
Last active May 12, 2022 11:07
Show Gist options
  • Select an option

  • Save techdecline/0c6556251bf173321a39fe68b34e3272 to your computer and use it in GitHub Desktop.

Select an option

Save techdecline/0c6556251bf173321a39fe68b34e3272 to your computer and use it in GitHub Desktop.
Terraform Zip Map on Resource Type
module "policy_set_key_vault_restrictions" {
source = "./modules/policy_set"
name = "keyVaultRestrictions"
display_name = "Deny unsupported encryption mechanisms in Key Vault"
description = "Deny unsupported encryption mechanisms in Key Vault"
location = var.location
set_definition_scope = data.azurerm_management_group.gothaernext.id
policy_definition_builtin_ids = [
"/providers/Microsoft.Authorization/policyDefinitions/1151cede-290b-4ba0-8b38-0ad145ac888f",
"/providers/Microsoft.Authorization/policyDefinitions/cee51871-e572-4576-855c-047c820360f0",
"/providers/Microsoft.Authorization/policyDefinitions/82067dbb-e53b-4e06-b631-546d197452d9"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment