Skip to content

ibm_is_vpn_gateway_connection input variables local_cidrs and peer_cidrs are not optional #4

@chanster

Description

@chanster

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions