Skip to main content

site_to_site_vpn_attachments

Creates, updates, deletes, gets or lists a site_to_site_vpn_attachments resource.

Overview

Namesite_to_site_vpn_attachments
TypeResource
Idaws.networkmanager.site_to_site_vpn_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachmentobjectDescribes a core network attachment.
vpn_connection_arnstringThe ARN of the site-to-site VPN attachment. (pattern: <code>^arn:[^:]{1,63}:ec2:[^:]{0,63}:[^:]{0,63}:vpn-connection/vpn-[0-9a-f]{8,17}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_site_to_site_vpn_attachmentselectattachment_id, regionReturns information about a site-to-site VPN attachment.
create_site_to_site_vpn_attachmentinsertregion, CoreNetworkId, VpnConnectionArnCreates an Amazon Web Services site-to-site VPN attachment on an edge location of a core network.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
attachment_idstringThe ID of the attachment.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a site-to-site VPN attachment.

SELECT
attachment,
vpn_connection_arn
FROM aws.networkmanager.site_to_site_vpn_attachments
WHERE attachment_id = '{{ attachment_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Web Services site-to-site VPN attachment on an edge location of a core network.

INSERT INTO aws.networkmanager.site_to_site_vpn_attachments (
CoreNetworkId,
VpnConnectionArn,
RoutingPolicyLabel,
Tags,
ClientToken,
region
)
SELECT
'{{ CoreNetworkId }}' /* required */,
'{{ VpnConnectionArn }}' /* required */,
'{{ RoutingPolicyLabel }}',
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
site_to_site_vpn_attachment
;