Skip to main content

vpn_connection_routes

Used to retrieve a list of vpn_connection_routes in a region or to create or delete a vpn_connection_routes resource, use vpn_connection_route to read or update an individual resource.

Overview

Namevpn_connection_routes
TypeResource
DescriptionResource Type definition for AWS::EC2::VPNConnectionRoute
Idaws.ec2.vpn_connection_routes

Fields

NameDatatypeDescription
destination_cidr_blockstringThe CIDR block associated with the local subnet of the customer network.
vpn_connection_idstringThe ID of the VPN connection.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDestinationCidrBlock, VpnConnectionId, region
delete_resourceDELETEdata__Identifier, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
destination_cidr_block,
vpn_connection_id
FROM aws.ec2.vpn_connection_routes
WHERE region = 'us-east-1';

INSERT Example

Use the following StackQL query and manifest file to create a new vpn_connection_route resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ec2.vpn_connection_routes (
DestinationCidrBlock,
VpnConnectionId,
region
)
SELECT
'{{ DestinationCidrBlock }}',
'{{ VpnConnectionId }}',
'{{ region }}';

DELETE Example

/*+ delete */
DELETE FROM aws.ec2.vpn_connection_routes
WHERE data__Identifier = '<DestinationCidrBlock|VpnConnectionId>'
AND region = 'us-east-1';

Permissions

To operate on the vpn_connection_routes resource, the following permissions are required:

Create

ec2:CreateVpnConnectionRoute,
ec2:DescribeVpnConnections

Delete

ec2:DeleteVpnConnectionRoute,
ec2:DescribeVpnConnections

List

ec2:DescribeVpnConnections