ibm-cloud-docs / ibm-cloud-provider-for-terraform

Documentation repository for ibm-cloud-provider-for-terraform
3 stars 17 forks source link

`ibm_is_vpn_gateway_connection` input variables `local_cidrs` and `peer_cidrs` are not optional #4

Open chanster opened 4 years ago

chanster commented 4 years ago

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

geemurth commented 4 years ago

We are working on this, will get back with shortly. Including our SME @umarali.nagoor@in.ibm.com