diff --git a/README.md b/README.md index 70aed22..f8e770a 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ provider "azurerm" { } module "policy" { - source = "../../" + source = "git::https://github.com/OT-terraform-azure-modules/terraform-azure-policies.git" policy_manner = "Policy" policy_name = "test" policy_type = "Custom" @@ -83,8 +83,12 @@ module "policy" { ## Case 2: Module Usage for initiative policy ```hcl +provider "azurerm" { + features {} +} + module "policy" { - source = "../../" + source = "git::https://github.com/OT-terraform-azure-modules/terraform-azure-policies.git" policy_manner = "Initiative" policy_name = "test" policy_type = "Custom" diff --git a/example/initiative/main.tf b/example/initiative/main.tf index 8707d4b..c9398f9 100644 --- a/example/initiative/main.tf +++ b/example/initiative/main.tf @@ -1,5 +1,9 @@ +provider "azurerm" { + features {} +} + module "policy" { - source = "../../" + source = "git::https://github.com/OT-terraform-azure-modules/terraform-azure-policies.git" policy_manner = "Initiative" policy_name = "test" policy_type = "Custom" diff --git a/example/policy/main.tf b/example/policy/main.tf index 15b7932..a30e512 100644 --- a/example/policy/main.tf +++ b/example/policy/main.tf @@ -3,7 +3,7 @@ provider "azurerm" { } module "policy" { - source = "../../" + source = "git::https://github.com/OT-terraform-azure-modules/terraform-azure-policies.git" policy_manner = "Policy" policy_name = "test" policy_type = "Custom" diff --git a/main.tf b/main.tf index 6b29ddb..f51ee59 100644 --- a/main.tf +++ b/main.tf @@ -1,6 +1,3 @@ -provider "azurerm" { - features {} -} resource "azurerm_policy_definition" "policy" { count = var.policy_type == "Custom" && var.policy_manner == "Policy" ? 1 : 0