Skip to main content

vpn_gateway

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

Overview

Namevpn_gateway
TypeResource
DescriptionSchema for EC2 VPN Gateway
Idaws.ec2.vpn_gateway

Fields

NameDatatypeDescription
v_pn_gateway_idstringVPN Gateway ID generated by service
amazon_side_asnintegerThe private Autonomous System Number (ASN) for the Amazon side of a BGP session.
tagsarrayAny tags assigned to the virtual private gateway.
typestringThe type of VPN connection the virtual private gateway supports.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
v_pn_gateway_id,
amazon_side_asn,
tags,
type
FROM aws.ec2.vpn_gateway
WHERE region = 'us-east-1' AND data__Identifier = '<VPNGatewayId>';

Permissions

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

Read

ec2:DescribeVpnGateways

Update

ec2:CreateTags,
ec2:DeleteTags