terraform-azurerm-caf icon indicating copy to clipboard operation
terraform-azurerm-caf copied to clipboard

Feature/add ddos protection plan id var non global to ddos

Open rfernandezdo opened this issue 1 year ago • 0 comments

Issue-id

PR Checklist


  • [x] I have added example(s) inside the [./examples/] folder
  • [x] I have added the example(s) to the integration test list for normal (~30 minutes) or long runner >30 minutes
  • [x] I have checked the coding conventions as per the wiki
  • [x] I have checked to ensure there aren't other open Pull Requests for the same update/change?

Description

DDOS protection plan id variable non global added

Does this introduce a breaking change

  • [ ] YES
  • [x] NO
## Testing

#You need to create DDOS Plan before
#I have commented the example to avoid errors in tests

global_settings = {
default_region = "region1"
regions = {
region1 = "australiaeast"
}
}

resource_groups = {
ddosrg = {
name = "ddos"
region = "region1"
}
}

ddos_services = {
ddos = {
name = "ddos-testplan"
resource_group_key = "ddosrg"
}
}

vnets = {
vnet1 = {
ddos_services_lz_key = "" #If the reference of Remote DDOS subscription plan is being inferred
ddos_services_key = "ddos"
# ddos_protection_plan_id = "/subscriptions/00000000-0000-0000-0000-0000000/resourceGroups/rgname/providers/Microsoft.Network/ddosProtectionPlans/planname" # uncomment and complete for use
resource_group_key = "ddosrg"
vnet = {
name = "test-vnet"
address_space = ["10.0.0.0/16"]
}
specialsubnets = {}
}
}

rfernandezdo avatar Oct 17 '23 15:10 rfernandezdo