feat: Add reference_sets functionality to rule_group #7
+23
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding missing functionality as per Terraform docs: https://registry.terraform.io/providers/hashicorp/aws/5.80.0/docs/resources/networkfirewall_rule_group#reference_sets-3
For provider 5.2.0:
https://registry.terraform.io/providers/hashicorp/aws/5.2.0/docs/resources/networkfirewall_rule_group#reference_sets-1
Description
This PR introduces functionality to create IP Sets which permits references to VPC prefix lists. An IP Set can then be referenced in a rule in the rule group as outlined in the AWS Documentation here: https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-examples.html#suricata-example-rule-with-ip-set-reference
Motivation and Context
As per the description, we can create IP Sets which permit references to AWS Prefix Lists and then references the IP Set in the rule.
Breaking Changes
This has been available for a considerable time and is available in provider versions 5.2 and greater which is the version pinned on this repository.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request