AWS WAF: aws_wafv2_web_acl_association import throws error
Running terraformer import for wafv2 gives the below error. I have tried using filter with the format Name=id;Value=WEB_ACL_ARN,RESOURCE_ARN but no resources gets imported.
terraformer version: latest compiled from master branch aws-provider version: v5.81.0
terraformer import aws --resources=wafv2_regional --regions=ap-southeast-1 --profile=""
2024/12/19 08:30:33 aws importing region ap-southeast-1 2024/12/19 08:30:34 aws importing... wafv2_regional 2024/12/19 08:30:35 aws done importing wafv2_regional 2024/12/19 08:30:35 Number of resources for service wafv2_regional: 5 2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl_association.tfer--arn-003A-aws-003A-elasticloadbalancing-003A-ap-southeast-1-003A-64260345632-003A-loadbalancer-002F-app-002F-pesac-alb-002F-82a453928601ffbf 2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl_association.tfer--arn-003A-aws-003A-apigateway-003A-ap-southeast-1-003A--003A--002F-restapis-002F-f1mflmqth1-002F-stages-002F-production 2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl_association.tfer--arn-003A-aws-003A-apigateway-003A-ap-southeast-1-003A--003A--002F-restapis-002F-tixdl6x4ik-002F-stages-002F-production 2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl.tfer--too_many_requests_block_ed7debfc 2024/12/19 08:30:35 Refreshing state... aws_wafv2_ip_set.tfer--lightsail_3d67ba3a 2024-12-19T08:30:35.126Z [ERROR] plugin.terraform-provider-aws_v5.81.0_x5: Response contains error diagnostic: tf_resource_type=aws_wafv2_web_acl_association @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" tf_proto_version=5.7 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=3ffa482a-f9c0-90c4-603f-68a5de964736 tf_rpc=ReadResource @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/f1mflmqth1/stages/production]), expected more than one part" timestamp=2024-12-19T08:30:35.125Z 2024-12-19T08:30:35.126Z [ERROR] plugin.terraform-provider-aws_v5.81.0_x5: Response contains error diagnostic: @module=sdk.proto diagnostic_detail="" diagnostic_severity=ERROR diagnostic_summary="unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/tixdl6x4ik/stages/production]), expected more than one part" tf_proto_version=5.7 @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 tf_resource_type=aws_wafv2_web_acl_association tf_req_id=95a0c5f7-fd56-6b60-4332-d53660c0e1c5 tf_rpc=ReadResource tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2024-12-19T08:30:35.125Z 2024-12-19T08:30:35.126Z [ERROR] plugin.terraform-provider-aws_v5.81.0_x5: Response contains error diagnostic: @module=sdk.proto tf_req_id=d775aa64-7503-c74c-661b-4e5f6f052a9e diagnostic_summary="unexpected format for ID ([arn:aws:elasticloadbalancing:ap-southeast-1:64260345632:loadbalancer/app/pesac-alb/82a453928601ffbf]), expected more than one part" tf_proto_version=5.7 tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" diagnostic_severity=ERROR tf_resource_type=aws_wafv2_web_acl_association tf_rpc=ReadResource timestamp=2024-12-19T08:30:35.126Z 2024/12/19 08:30:35 unexpected format for ID ([arn:aws:elasticloadbalancing:ap-southeast-1:64260345632:loadbalancer/app/pesac-alb/82a453928601ffbf]), expected more than one part 2024/12/19 08:30:35 WARN: Fail read resource from provider, wait 300ms before retry 2024/12/19 08:30:35 unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/f1mflmqth1/stages/production]), expected more than one part 2024/12/19 08:30:35 WARN: Fail read resource from provider, wait 300ms before retry 2024/12/19 08:30:35 unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/tixdl6x4ik/stages/production]), expected more than one part 2024/12/19 08:30:35 WARN: Fail read resource from provider, wait 300ms before retry
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.