You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ddos_protection_plan can only be configured for all workspaces at once. If it's only enabled in workspace a, the module fails if it is run in workspace b.
If terraform plan is executed from test workspace, not from prod, the following error occurs:
│ Error: Missing map element
│
│ on .terraform/modules/network/main.tf line 26, in resource "azurerm_virtual_network" "virtual_network":
│ 26: id = local.virtual_network[each.key].ddos_protection_plan.id
│ ├────────────────
│ │ each.key is "environment"
│ │ local.virtual_network is object with 1 attribute "environment"
│
│ This map does not have an element with the key "id".
Reproduction steps
restrict ddos_protection_plan to one workspace, then plan/apply from another workspace
Current Behavior
Error: missing map element
Expected Behavior
ddos_protection_plan is ignored/skipped in unwanted environments/workspaces
Additional information
No response
The text was updated successfully, but these errors were encountered:
Description
The ddos_protection_plan can only be configured for all workspaces at once. If it's only enabled in workspace a, the module fails if it is run in workspace b.
If terraform plan is executed from test workspace, not from prod, the following error occurs:
Reproduction steps
restrict ddos_protection_plan to one workspace, then plan/apply from another workspace
Current Behavior
Error: missing map element
Expected Behavior
ddos_protection_plan is ignored/skipped in unwanted environments/workspaces
Additional information
No response
The text was updated successfully, but these errors were encountered: