Skip to main content

route_server_peers

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

Overview

Nameroute_server_peers
TypeResource
Idaws.ec2.route_server_peers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bfd_statusstringThe current status of the BFD session with this peer.
bgp_optionsstringThe BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.
bgp_statusstringThe current status of the BGP session with this peer.
endpoint_eni_addressstringThe IP address of the Elastic network interface for the route server endpoint.
endpoint_eni_idstringThe ID of the Elastic network interface for the route server endpoint.
failure_reasonstringThe reason for any failure in peer creation or operation.
peer_addressstringThe IPv4 address of the peer device.
route_server_endpoint_idstringThe ID of the route server endpoint associated with this peer.
route_server_idstringThe ID of the route server associated with this peer.
route_server_peer_idstringThe unique identifier of the route server peer.
statestringThe current state of the route server peer.
subnet_idstringThe ID of the subnet containing the route server peer.
tagsstringAny tags assigned to the route server peer.
vpc_idstringThe ID of the VPC containing the route server peer.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_route_server_peersselectregionRouteServerPeerId, NextToken, MaxResults, Filter, DryRunDescribes one or more route server peers. A route server peer is a session between a route server endpoint and the device deployed in Amazon Web Services (such as a firewall appliance or other network security function running on an EC2 instance). The device must meet these requirements: Have an elastic network interface in the VPC Support BGP (Border Gateway Protocol) Can initiate BGP sessions For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.
create_route_server_peerinsertRouteServerEndpointId, PeerAddress, BgpOptions, regionDryRun, TagSpecificationCreates a new BGP peer for a specified route server endpoint. A route server peer is a session between a route server endpoint and the device deployed in Amazon Web Services (such as a firewall appliance or other network security function running on an EC2 instance). The device must meet these requirements: Have an elastic network interface in the VPC Support BGP (Border Gateway Protocol) Can initiate BGP sessions For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.
delete_route_server_peerdeleteRouteServerPeerId, regionDryRunDeletes the specified BGP peer from a route server. A route server peer is a session between a route server endpoint and the device deployed in Amazon Web Services (such as a firewall appliance or other network security function running on an EC2 instance). The device must meet these requirements: Have an elastic network interface in the VPC Support BGP (Border Gateway Protocol) Can initiate BGP sessions

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
BgpOptionsobjectThe BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.
PeerAddressstringThe IPv4 address of the peer device.
RouteServerEndpointIdstringThe ID of the route server endpoint for which to create a peer.
RouteServerPeerIdstringThe ID of the route server peer to delete.
regionstringAWS region (default: us-east-1)
DryRunbooleanA check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters to apply to the describe request.
MaxResultsintegerThe maximum number of results to return with a single call.
NextTokenstringThe token for the next page of results.
RouteServerPeerIdarrayThe IDs of the route server peers to describe.
TagSpecificationarrayThe tags to apply to the route server peer during creation.

SELECT examples

Describes one or more route server peers. A route server peer is a session between a route server endpoint and the device deployed in Amazon Web Services (such as a firewall appliance or other network security function running on an EC2 instance). The device must meet these requirements: Have an elastic network interface in the VPC Support BGP (Border Gateway Protocol) Can initiate BGP sessions For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.

SELECT
bfd_status,
bgp_options,
bgp_status,
endpoint_eni_address,
endpoint_eni_id,
failure_reason,
peer_address,
route_server_endpoint_id,
route_server_id,
route_server_peer_id,
state,
subnet_id,
tags,
vpc_id
FROM aws.ec2.route_server_peers
WHERE region = '{{ region }}' -- required
AND RouteServerPeerId = '{{ RouteServerPeerId }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Filter = '{{ Filter }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a new BGP peer for a specified route server endpoint. A route server peer is a session between a route server endpoint and the device deployed in Amazon Web Services (such as a firewall appliance or other network security function running on an EC2 instance). The device must meet these requirements: Have an elastic network interface in the VPC Support BGP (Border Gateway Protocol) Can initiate BGP sessions For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.

INSERT INTO aws.ec2.route_server_peers (
RouteServerEndpointId,
PeerAddress,
BgpOptions,
region,
DryRun,
TagSpecification
)
SELECT
'{{ RouteServerEndpointId }}',
'{{ PeerAddress }}',
'{{ BgpOptions }}',
'{{ region }}',
'{{ DryRun }}',
'{{ TagSpecification }}'
RETURNING
bfd_status,
bgp_options,
bgp_status,
endpoint_eni_address,
endpoint_eni_id,
failure_reason,
peer_address,
route_server_endpoint_id,
route_server_id,
route_server_peer_id,
state,
subnet_id,
tags,
vpc_id
;

DELETE examples

Deletes the specified BGP peer from a route server. A route server peer is a session between a route server endpoint and the device deployed in Amazon Web Services (such as a firewall appliance or other network security function running on an EC2 instance). The device must meet these requirements: Have an elastic network interface in the VPC Support BGP (Border Gateway Protocol) Can initiate BGP sessions

DELETE FROM aws.ec2.route_server_peers
WHERE RouteServerPeerId = '{{ RouteServerPeerId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;