Skip to content

Commit

Permalink
Merge pull request #23482 from jordanfelle/fix/22727
Browse files Browse the repository at this point in the history
fix #22727: allow any character in networkfirewall/stateful_rule/header source/destination per the api docs
  • Loading branch information
ewbankkit committed Mar 3, 2022
2 parents 42af5fd + f61bbed commit 43b2532
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/22727.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_networkfirewall_rule_group: Allow any character in `source` and `destination` `rule_group.rules_source.stateful_rule.header` arguments as per the AWS API docs
```
8 changes: 0 additions & 8 deletions internal/service/networkfirewall/rule_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,6 @@ func ResourceRuleGroup() *schema.Resource {
"destination": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.Any(
verify.ValidIPv4CIDRNetworkAddress,
validation.StringInSlice([]string{networkfirewall.StatefulRuleDirectionAny}, false),
),
},
"destination_port": {
Type: schema.TypeString,
Expand All @@ -207,10 +203,6 @@ func ResourceRuleGroup() *schema.Resource {
"source": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.Any(
verify.ValidIPv4CIDRNetworkAddress,
validation.StringInSlice([]string{networkfirewall.StatefulRuleDirectionAny}, false),
),
},
"source_port": {
Type: schema.TypeString,
Expand Down

0 comments on commit 43b2532

Please sign in to comment.