terraform-aws-waf-webaclv2 icon indicating copy to clipboard operation
terraform-aws-waf-webaclv2 copied to clipboard

Unsupported block type

Open Vitrana-reports opened this issue 2 years ago • 4 comments

Error: Unsupported block type

on .terraform/modules/waf/main.tf line 116, in resource "aws_wafv2_web_acl" "main": 116: dynamic "excluded_rule" {

Blocks of type "excluded_rule" are not expected here.

Error: Failed to read the given file as a state or plan file

State read error: Error loading statefile: open tfplan: no such file or directory

Software versions?

Vitrana-reports avatar Jul 03 '23 10:07 Vitrana-reports

Terraform version = 1.3.5 aws version = 4.52.0

Vitrana-reports avatar Jul 03 '23 10:07 Vitrana-reports

same issue

dberuben avatar Aug 01 '23 07:08 dberuben

Error: Unsupported block type │ │ on .terraform/modules/waf/main.tf line 116, in resource "aws_wafv2_web_acl" "main": │ 116: dynamic "rule_action_override" { │ │ Blocks of type "rule_action_override" are not expected here. ╵ What wiil be next??

Amol7766 avatar Sep 08 '23 12:09 Amol7766

Same issue:

╷
│ Error: Unsupported block type
│
│   on .terraform/modules/waf/main.tf line 116, in resource "aws_wafv2_web_acl" "main":
│  116:             dynamic "rule_action_override" {
│
│ Blocks of type "rule_action_override" are not expected here.
╵

pmcdonald-metropolis avatar Sep 25 '23 18:09 pmcdonald-metropolis

I know this is an old issue, but as a workaround, you need to update the AWS provider to at least 5.0.0

eze-godoy avatar Mar 17 '25 20:03 eze-godoy