Skip to main content

vpn_connection_routes

Creates, updates, deletes or gets a vpn_connection_route resource or lists vpn_connection_routes in a region

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_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all vpn_connection_routes in a region.

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

Gets all properties from an individual vpn_connection_route.

SELECT
region,
destination_cidr_block,
vpn_connection_id
FROM aws.ec2.vpn_connection_routes
WHERE region = 'us-east-1' AND data__Identifier = '<DestinationCidrBlock>|<VpnConnectionId>';

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

Read

ec2:DescribeVpnConnections

Delete

ec2:DeleteVpnConnectionRoute,
ec2:DescribeVpnConnections

List

ec2:DescribeVpnConnections