Skip to main content

vpn_connection

Gets or updates an individual vpn_connection resource, use vpn_connections to retrieve a list of resources or to create or delete a resource.

Overview

Namevpn_connection
TypeResource
DescriptionResource Type definition for AWS::EC2::VPNConnection
Idaws.ec2.vpn_connection

Fields

NameDatatypeDescription
vpn_connection_idstringThe provider-assigned unique ID for this managed resource
customer_gateway_idstringThe ID of the customer gateway at your end of the VPN connection.
static_routes_onlybooleanIndicates whether the VPN connection uses static routes only.
tagsarrayAny tags assigned to the VPN connection.
transit_gateway_idstringThe ID of the transit gateway associated with the VPN connection.
typestringThe type of VPN connection.
vpn_gateway_idstringThe ID of the virtual private gateway at the AWS side of the VPN connection.
vpn_tunnel_options_specificationsarrayThe tunnel options for the VPN connection.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
vpn_connection_id,
customer_gateway_id,
static_routes_only,
tags,
transit_gateway_id,
type,
vpn_gateway_id,
vpn_tunnel_options_specifications
FROM aws.ec2.vpn_connection
WHERE region = 'us-east-1' AND data__Identifier = '<VpnConnectionId>';

Permissions

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

Update

ec2:DescribeVpnConnections,
ec2:CreateTags,
ec2:DeleteTags

Read

ec2:DescribeVpnConnections