-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add REJECT action to Network Firewall rule group stateful rule actions #32746
Add REJECT action to Network Firewall rule group stateful rule actions #32746
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccNetworkFirewallRuleGroup_StatefulRule_action' PKG=networkfirewall
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 20 -run=TestAccNetworkFirewallRuleGroup_StatefulRule_action -timeout 180m
=== RUN TestAccNetworkFirewallRuleGroup_StatefulRule_action
=== PAUSE TestAccNetworkFirewallRuleGroup_StatefulRule_action
=== CONT TestAccNetworkFirewallRuleGroup_StatefulRule_action
--- PASS: TestAccNetworkFirewallRuleGroup_StatefulRule_action (210.69s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall 215.815s
@ddericco Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.11.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Adds formal support for the REJECT stateful rule action in the
aws_networkfirewall_rule_group
resource by adding acceptance tests and updating the documentation. Note that setting the REJECT action was possible previously due to the validation innetworkfirewall.StatefulAction_Values()
, but was not documented nor checked as part of the acceptance tests.Relations
Closes #28957
References
What's New: https://aws.amazon.com/about-aws/whats-new/2023/01/aws-network-firewall-support-reject-action-tcp-traffic/
API: https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_StatefulRule.html#networkfirewall-Type-StatefulRule-Action
SDK: https://github.com/aws/aws-sdk-go-v2/blob/service/networkfirewall/v1.28.5/service/networkfirewall/types/enums.go#L291
Output from Acceptance Testing