Skip to content

Commit

Permalink
fix: validation function should check for CIDR range
Browse files Browse the repository at this point in the history
  • Loading branch information
zachfeld committed Feb 24, 2022
1 parent b97edfa commit 3b968e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/ec2/launch_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ func ResourceLaunchTemplate() *schema.Resource {
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.IsIPv4Address,
ValidateFunc: verify.ValidIPv4CIDRNetworkAddress,
},
},
"ipv4_prefix_count": {
Expand All @@ -543,7 +543,7 @@ func ResourceLaunchTemplate() *schema.Resource {
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.IsIPv6Address,
ValidateFunc: verify.ValidIPv6CIDRNetworkAddress,
},
},
"ipv6_prefix_count": {
Expand Down

0 comments on commit 3b968e7

Please sign in to comment.