Skip to content

Commit

Permalink
Merge pull request hashicorp#17573 from jsf9k/b-aws_vpn_connection
Browse files Browse the repository at this point in the history
Allow local and remote IPv4 and IPv6 CIDRs to be of any size
  • Loading branch information
YakDriver authored May 27, 2021
2 parents efa8b7c + f2eea4f commit f9080a5
Show file tree
Hide file tree
Showing 4 changed files with 368 additions and 171 deletions.
3 changes: 3 additions & 0 deletions .changelog/17573.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_vpn_connection: Allow `local_ipv4_network_cidr`, `remote_ipv4_network_cidr`, `local_ipv6_network_cidr`, and `remote_ipv6_network_cidr` to be CIDRs of any size
```
1 change: 1 addition & 0 deletions aws/resource_aws_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func init() {
func testAccErrorCheckSkipEC2(t *testing.T) resource.ErrorCheckFunc {
return testAccErrorCheckSkipMessagesContaining(t,
"VolumeTypeNotAvailableInRegion",
"Invalid value specified for Phase",
)
}

Expand Down
4 changes: 2 additions & 2 deletions aws/resource_aws_vpn_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -1742,13 +1742,13 @@ func validateVpnConnectionTunnelInsideIpv6CIDR() schema.SchemaValidateFunc {

func validateLocalIpv4NetworkCidr() schema.SchemaValidateFunc {
return validation.All(
validation.IsCIDRNetwork(32, 32),
validation.IsCIDRNetwork(0, 32),
)
}

func validateLocalIpv6NetworkCidr() schema.SchemaValidateFunc {
return validation.All(
validation.IsCIDRNetwork(128, 128),
validation.IsCIDRNetwork(0, 128),
)
}

Expand Down
Loading

0 comments on commit f9080a5

Please sign in to comment.