Skip to main content

connect_attachments

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

Overview

Nameconnect_attachments
TypeResource
Idaws.networkmanager.connect_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachmentobjectThe attachment details.
optionsobjectDescribes a core network Connect attachment options.
transport_attachment_idstringThe ID of the transport attachment. (pattern: <code>^attachment-([0-9a-f]{8,17})$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connect_attachmentselectattachment_id, regionReturns information about a core network Connect attachment.
create_connect_attachmentinsertregion, CoreNetworkId, EdgeLocation, TransportAttachmentId, OptionsCreates a core network Connect attachment from a specified core network attachment. A core network Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a core network and an appliance. A core network Connect attachment uses an existing VPC attachment as the underlying transport mechanism.

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 core network Connect attachment.

SELECT
attachment,
options,
transport_attachment_id
FROM aws.networkmanager.connect_attachments
WHERE attachment_id = '{{ attachment_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a core network Connect attachment from a specified core network attachment. A core network Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a core network and an appliance. A core network Connect attachment uses an existing VPC attachment as the underlying transport mechanism.

INSERT INTO aws.networkmanager.connect_attachments (
CoreNetworkId,
EdgeLocation,
TransportAttachmentId,
RoutingPolicyLabel,
Options,
Tags,
ClientToken,
region
)
SELECT
'{{ CoreNetworkId }}' /* required */,
'{{ EdgeLocation }}' /* required */,
'{{ TransportAttachmentId }}' /* required */,
'{{ RoutingPolicyLabel }}',
'{{ Options }}' /* required */,
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
connect_attachment
;