Skip to contents

Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway. The supported connection type is ipsec.1.

See https://www.paws-r-sdk.com/docs/ec2_create_vpn_connection/ for full documentation.

Usage

ec2_create_vpn_connection(
  CustomerGatewayId,
  Type,
  VpnGatewayId = NULL,
  TransitGatewayId = NULL,
  VpnConcentratorId = NULL,
  TagSpecifications = NULL,
  PreSharedKeyStorage = NULL,
  DryRun = NULL,
  Options = NULL
)

Arguments

CustomerGatewayId

[required] The ID of the customer gateway.

Type

[required] The type of VPN connection (ipsec.1).

VpnGatewayId

The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.

TransitGatewayId

The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.

VpnConcentratorId

The ID of the VPN concentrator to associate with the VPN connection.

TagSpecifications

The tags to apply to the VPN connection.

PreSharedKeyStorage

Specifies the storage mode for the pre-shared key (PSK). Valid values are Standard" (stored in the Site-to-Site VPN service) or SecretsManager (stored in Amazon Web Services Secrets Manager).

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Options

The options for the VPN connection.