cloud-guardrails icon indicating copy to clipboard operation
cloud-guardrails copied to clipboard

Error in function call

Open MathCarv opened this issue 2 years ago • 1 comments

Anyone can help me?

Warning: "policy_definitions": [DEPRECATED] Deprecated in favour of policy_definition_reference

on no_params.tf line 72, in resource "azurerm_policy_set_definition" "no_params": 72: resource "azurerm_policy_set_definition" "no_params" {

Error: Error in function call

on no_params.tf line 66, in locals: 66: no_params_scope = local.management_group_no_params != "" ? data.azurerm_management_group.no_params[0].id : element(data.azurerm_subscriptions.no_params[0].subscriptions.*.id, 0) |---------------- | data.azurerm_subscriptions.no_params[0].subscriptions is empty list of object

Call to function "element" failed: cannot use element function with an empty list.

image

MathCarv avatar May 03 '23 12:05 MathCarv