[Bug]: Suricata Rule Comments Not Supported in Networkfirewall Rule in v5.82.2 AWS Provider Version #40856
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/networkfirewall
Issues and PRs that pertain to the networkfirewall service.
waiting-response
Maintainers are waiting on response from community or contributor.
Terraform Core Version
v1.10.4
AWS Provider Version
v5.82.2
Affected Resource(s)
Expected Behavior
Terraform should accept the Suricata rule file even if it contains comments. Comments are part of the Suricata specification and should be ignored during rule parsing.
Actual Behavior
Terraform throws an error when the rule file contains comments, indicating that the rules are invalid. This behavior did not occur in earlier versions of the AWS provider.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Terraform Configuration Files
Below is a sample configuration file to reproduce the issue:
rules.suricata file:
Steps to Reproduce
Steps to Reproduce
Create a Suricata rule file (rules.suricata) with the following content:
Reference this rule file in your Terraform configuration as shown above.
Run terraform plan or terraform apply.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
#26517
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: