Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewcluey/terraform-azurerm-policy-definition
Terraform module that will define Azure policies using json file inputs
https://github.com/andrewcluey/terraform-azurerm-policy-definition
Last synced: 2 months ago
JSON representation
Terraform module that will define Azure policies using json file inputs
- Host: GitHub
- URL: https://github.com/andrewcluey/terraform-azurerm-policy-definition
- Owner: andrewCluey
- Created: 2021-06-14T09:27:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-14T15:19:19.000Z (over 3 years ago)
- Last Synced: 2024-08-01T22:43:04.219Z (5 months ago)
- Language: HCL
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-azure-policy - andrewcluey/terraform-azurerm-policy-definition
README
# terraform-azurerm-policy-definition
Terraform module that will define Azure policies using json file inputsreads the files specified
Stores the content from the read JSON policy file into local variables.
Local variables are then used as inputs into the policy definition resourceWhen caling the module, a for_each can be used to iterate through multiple files, EXAMPLE:
```
locals {
policy_files = fileset(path.module, "lib/*.json")
}module "policies" {
for_each = local.policy_files
source = "../"policy_file = each.value
}
```