Issue
Document states ibm_is_vpn_gateway_connection resource variables local_cidrs and peer_cidrs are optional, but if you try to apply a GW connection without those variables, it fails to create resource.
Document: https://cloud.ibm.com/docs/terraform?topic=terraform-vpc-gen2-resources#vpn-gateway-connection
Error Message
Error: [DEBUG] Create VPN Gateway Connection err At least one local CIDR block is required when creating a VPN connection.
Steps to Recreate
resource "ibm_is_vpn_gateway_connection" "this" {
name = "vpn-gw-test"
admin_state_up = true
vpn_gateway = ibm_is_vpn_gateway.this.id
peer_address = var.peer_address
preshared_key = var.preshared_key
}
Expect
If its optional then it should create without error