Skip to content

Commit

Permalink
Merge branch 'resource-provider-registration-resource' of github.com:…
Browse files Browse the repository at this point in the history
…VolkerWessels/terraform-azurerm-caf into VolkerWessels-resource-provider-registration-resource
  • Loading branch information
arnaudlh committed Jul 7, 2022
2 parents 5b317d5 + e15fdd3 commit 78ab97f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module "example" {
role_mapping = var.role_mapping
storage_accounts = var.storage_accounts
subscription_billing_role_assignments = var.subscription_billing_role_assignments
resource_provider_registration = var.resource_provider_registration
tags = local.tags

azuread = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource_provider_registration = {
container_service = {
name = "Microsoft.ContainerService"
feature_name = "AKS-DataPlaneAutoApprove"
registered = true
}
network_rule_name_logging = {
name = "Microsoft.Network"
feature_name = "AFWEnableNetworkRuleNameLogging"
registered = true
}
}
4 changes: 3 additions & 1 deletion examples/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -987,4 +987,6 @@ variable "traffic_manager_nested_endpoint" {
variable "traffic_manager_profile" {
default = {}
}

variable "resource_provider_registration" {
default = {}
}
9 changes: 9 additions & 0 deletions resource_provider_registration.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "azurerm_resource_provider_registration" "default" {
for_each = var.resource_provider_registration
name = each.value.name

feature {
name = each.value.feature_name
registered = each.value.registered
}
}
3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -413,3 +413,6 @@ variable "iot" {

}
}
variable "resource_provider_registration" {
default = {}
}

0 comments on commit 78ab97f

Please sign in to comment.