Creates a VPN connection between an existing virtual private gateway or
transit gateway and a customer gateway. The supported connection type is
ipsec.1
.
The response includes information that you need to give to your network administrator to configure your customer gateway.
We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway device.
If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.
For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.
ec2_create_vpn_connection(CustomerGatewayId, Type, VpnGatewayId,
TransitGatewayId, DryRun, Options, TagSpecifications)
A list with the following syntax:
list(
VpnConnection = list(
CustomerGatewayConfiguration = "string",
CustomerGatewayId = "string",
Category = "string",
State = "pending"|"available"|"deleting"|"deleted",
Type = "ipsec.1",
VpnConnectionId = "string",
VpnGatewayId = "string",
TransitGatewayId = "string",
Options = list(
EnableAcceleration = TRUE|FALSE,
StaticRoutesOnly = TRUE|FALSE,
LocalIpv4NetworkCidr = "string",
RemoteIpv4NetworkCidr = "string",
LocalIpv6NetworkCidr = "string",
RemoteIpv6NetworkCidr = "string",
TunnelInsideIpVersion = "ipv4"|"ipv6",
TunnelOptions = list(
list(
OutsideIpAddress = "string",
TunnelInsideCidr = "string",
TunnelInsideIpv6Cidr = "string",
PreSharedKey = "string",
Phase1LifetimeSeconds = 123,
Phase2LifetimeSeconds = 123,
RekeyMarginTimeSeconds = 123,
RekeyFuzzPercentage = 123,
ReplayWindowSize = 123,
DpdTimeoutSeconds = 123,
DpdTimeoutAction = "string",
Phase1EncryptionAlgorithms = list(
list(
Value = "string"
)
),
Phase2EncryptionAlgorithms = list(
list(
Value = "string"
)
),
Phase1IntegrityAlgorithms = list(
list(
Value = "string"
)
),
Phase2IntegrityAlgorithms = list(
list(
Value = "string"
)
),
Phase1DHGroupNumbers = list(
list(
Value = 123
)
),
Phase2DHGroupNumbers = list(
list(
Value = 123
)
),
IkeVersions = list(
list(
Value = "string"
)
),
StartupAction = "string"
)
)
),
Routes = list(
list(
DestinationCidrBlock = "string",
Source = "Static",
State = "pending"|"available"|"deleting"|"deleted"
)
),
Tags = list(
list(
Key = "string",
Value = "string"
)
),
VgwTelemetry = list(
list(
AcceptedRouteCount = 123,
LastStatusChange = as.POSIXct(
"2015-01-01"
),
OutsideIpAddress = "string",
Status = "UP"|"DOWN",
StatusMessage = "string",
CertificateArn = "string"
)
)
)
)
[required] The ID of the customer gateway.
[required] The type of VPN connection (ipsec.1
).
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
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
.
The options for the VPN connection.
The tags to apply to the VPN connection.
svc$create_vpn_connection(
CustomerGatewayId = "string",
Type = "string",
VpnGatewayId = "string",
TransitGatewayId = "string",
DryRun = TRUE|FALSE,
Options = list(
EnableAcceleration = TRUE|FALSE,
StaticRoutesOnly = TRUE|FALSE,
TunnelInsideIpVersion = "ipv4"|"ipv6",
TunnelOptions = list(
list(
TunnelInsideCidr = "string",
TunnelInsideIpv6Cidr = "string",
PreSharedKey = "string",
Phase1LifetimeSeconds = 123,
Phase2LifetimeSeconds = 123,
RekeyMarginTimeSeconds = 123,
RekeyFuzzPercentage = 123,
ReplayWindowSize = 123,
DPDTimeoutSeconds = 123,
DPDTimeoutAction = "string",
Phase1EncryptionAlgorithms = list(
list(
Value = "string"
)
),
Phase2EncryptionAlgorithms = list(
list(
Value = "string"
)
),
Phase1IntegrityAlgorithms = list(
list(
Value = "string"
)
),
Phase2IntegrityAlgorithms = list(
list(
Value = "string"
)
),
Phase1DHGroupNumbers = list(
list(
Value = 123
)
),
Phase2DHGroupNumbers = list(
list(
Value = 123
)
),
IKEVersions = list(
list(
Value = "string"
)
),
StartupAction = "string"
)
),
LocalIpv4NetworkCidr = "string",
RemoteIpv4NetworkCidr = "string",
LocalIpv6NetworkCidr = "string",
RemoteIpv6NetworkCidr = "string"
),
TagSpecifications = list(
list(
ResourceType = "client-vpn-endpoint"|"customer-gateway"|"dedicated-host"|"dhcp-options"|"egress-only-internet-gateway"|"elastic-ip"|"elastic-gpu"|"export-image-task"|"export-instance-task"|"fleet"|"fpga-image"|"host-reservation"|"image"|"import-image-task"|"import-snapshot-task"|"instance"|"internet-gateway"|"key-pair"|"launch-template"|"local-gateway-route-table-vpc-association"|"natgateway"|"network-acl"|"network-interface"|"network-insights-analysis"|"network-insights-path"|"placement-group"|"reserved-instances"|"route-table"|"security-group"|"snapshot"|"spot-fleet-request"|"spot-instances-request"|"subnet"|"traffic-mirror-filter"|"traffic-mirror-session"|"traffic-mirror-target"|"transit-gateway"|"transit-gateway-attachment"|"transit-gateway-connect-peer"|"transit-gateway-multicast-domain"|"transit-gateway-route-table"|"volume"|"vpc"|"vpc-peering-connection"|"vpn-connection"|"vpn-gateway"|"vpc-flow-log",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
)
)