aws_wafv2_ip_set.custom_ip_set[0]: Refreshing state... [id=12d7904a-99cd-4acb-b33a-173bee2adfa3]
module.waf.aws_wafv2_web_acl.main[0]: Refreshing state... [id=ff000ab9-4de9-4646-96e2-44af93e1128d]
╷
│ Error: Invalid function argument
│
│ on .terraform/modules/waf/main.tf line 2219, in resource "aws_wafv2_web_acl" "main":
│ 2219: for_each = length(lookup(ip_set_reference_statement.value, "ip_set_forwarded_ip_config", {})) == 0 ? [] : [lookup(ip_set_reference_statement.value, "ip_set_forwarded_ip_config", {})]
│
│ Invalid value for "default" parameter: the default value must have the same
│ type as the map elements.
╵
ERRO[0046] 1 error occurred:
exit status 1
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
terraform plan or terraform apply
What is the expected behavior?
Run without getting this error
Software versions?
Module version 4.6.1
hashicorp/aws v4.67.0
What is the current behavior?
Module version 4.6.1 hashicorp/aws v4.67.0
aws_wafv2_ip_set.custom_ip_set[0]: Refreshing state... [id=12d7904a-99cd-4acb-b33a-173bee2adfa3] module.waf.aws_wafv2_web_acl.main[0]: Refreshing state... [id=ff000ab9-4de9-4646-96e2-44af93e1128d] ╷ │ Error: Invalid function argument │ │ on .terraform/modules/waf/main.tf line 2219, in resource "aws_wafv2_web_acl" "main": │ 2219: for_each = length(lookup(ip_set_reference_statement.value, "ip_set_forwarded_ip_config", {})) == 0 ? [] : [lookup(ip_set_reference_statement.value, "ip_set_forwarded_ip_config", {})] │ │ Invalid value for "default" parameter: the default value must have the same │ type as the map elements. ╵ ERRO[0046] 1 error occurred:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
terraform plan or terraform apply
What is the expected behavior?
Run without getting this error
Software versions? Module version 4.6.1 hashicorp/aws v4.67.0