Add segment actions in an AWS Cloud WAN core network policy version
The following steps guide you through optionally setting segment actions for a core network for a policy version using the Policy versions link on the AWS Network Manager console. Before setting segment actions you must first configure your network settings and add one or more segments. For more information, about segment actions, see Segment actions.
Segment sharing
Create a shared segment between two segments.
Segment sharing is bidirectional by default. When you create a segment share between
two segments, routes from both segments are automatically advertised to each other. For
example, you might share a segment named test with another segment
named dev. Routes from test are advertised to
dev, and vice versa. To make routes in shared segments
unidirectional, create a deny list filter to share routes from one segment to the other,
but not vice versa. Using the previous example, you could make a deny list filter that
prevents routes from test being advertised to dev.
For more information on creating the deny list for a segment, see Add a segment to an AWS Cloud WAN core network policy version.
Static routes are not propagated between shared segments when using attachment-route mode. Only attachment routes (routes to directly connected attachments) are shared between segments. If there are static routes or routes shared from other segments, those will not be shared through the attachment-route mode. Static routes remain within their intended segment boundaries and must be explicitly created in each segment where they're needed using multiple create-route statements.
To create a shared segment
Access the Network Manager console at https://eusc-de-east-1.console.amazonaws-eusc.eu/networkmanager/home/
. -
Under Connectivity choose Cloud WAN.
-
On the Global networks page, choose the global network ID that for the core network you want to create a policy version for, and then choose Core network.
-
In the navigation pane, choose Policy versions.
-
Choose Create policy version.
-
Choose Segment actions - optional.
-
(Optional) In the Sharing section, choose Create, and then do the following:
-
From the Segment from dropdown list, choose the core network segment that you want to share.
-
For the Segment to, choose if you want to Allow all shared routes from other segments, to Allowed selected segments, or to Deny selected segments. The default value is to Allow all segments.
-
Do one of the following:
-
If you chose Allow selected, choose the segments to allow from the Allow segment list.
-
If you chose Deny selected, choose the segments to disallow from the Deny segment list.
-
-
(Optional) If you've created a routing policy, select the Routing policy to choose the routing policies to apply this segment sharing to.
-
Choose Create sharing.
-
Segment routes
Create a segment route for a policy version.
Only VPC and Site-to-Site VPN attachments can be destinations for a static route. You can't use
Connect, transit gateway route table, or Direct Connect gateway attachments as static route
destinations. These attachments only support routes that are dynamically propagated. If
you choose one of these attachments, policy validation fails with a
CREATE_ROUTE_WITH_INVALID_ATTACHMENT_TYPE error.
To create a segment route
Access the Network Manager console at https://eusc-de-east-1.console.amazonaws-eusc.eu/networkmanager/home/
. -
Under Connectivity choose Cloud WAN.
-
On the Global networks page, choose the global network ID that for the core network you want to create a policy version for, and then choose Core network.
-
In the navigation pane, choose Policy versions.
-
Choose Create policy version.
-
Choose Segment actions - optional.
-
(Optional) In the Routes section, choose Create, and then do the following:
-
From the Segment dropdown list, choose the core network segment that you want to share.
-
For Destination CIDR Block, enter a static route. You can enter multiple CIDR blocks by choosing Add for each block that you want to add. Choose Remove for any blocks that you don't want.
NoteYou can't leave any blank destination CIDR blocks. Choose Remove to delete any empty blocks.
-
Choose Blackhole if you want to "black hole" the route. If you make this choice, you can't add any attachments to the route.
-
In the Routes section, from the Attachments list, choose the attachments that you want to use as destinations for this route. You can choose up to one attachment for each AWS Region in the segment.
-
Choose Create segment route.
-
-
(Optional) Add Attachment policies. For more information, see Create an attachment policy in an AWS Cloud WAN core network policy version.
-
Choose Create route.
Edge location routing policy associations
Associating a routing policy to an edge location pair allows you to control how traffic flows between two specific geographic locations in your network, overriding default routing behavior. This provides control for performance optimization, cost management, failover scenarios, and compliance requirements between those specific locations.
When the core network policy version is 2026.10 or later,
the default routing behavior includes a default MED on routes that an edge location
advertises to another edge location. A Set MED
(set-med) action in an edge location routing policy replaces this default
MED for the routes that the rule matches.
To create routing policy associations
Access the Network Manager console at https://eusc-de-east-1.console.amazonaws-eusc.eu/networkmanager/home/
. -
Under Connectivity choose Cloud WAN.
-
On the Global networks page, choose the global network ID that for the core network you want to create a policy version for, and then choose Core network.
-
In the navigation pane, choose Policy versions.
-
Choose Create policy version.
-
Choose Segment actions - optional.
-
(Optional) In the Edge location routing policy associations section, choose Associate, and then do the following:
-
From the Segment from dropdown list, choose the segment for the routing policy association.
-
From the Edge location dropdown list, choose the source edge location.
-
From the Peer edge location dropdown list, choose the destination edge location.
-
From the Routing policy name dropdown list, choose the routing policy to associate with this segment and edge location pair.
-
Choose Associate.
-
For more information on the parameters used in the JSON file, see Core network policy version parameters in AWS Cloud WAN.
{ "segment-actions": [ { "action": "associate-routing-policy", "segment": "prod", "edge-location-association": { "edge-location": "us-east-1", "peer-edge-location": "us-west-2", "routing-policy-names": ["routingFilter"] } } ] }
Service insertion
Create a segment route for a policy version.
To set up service insertion for a segment
Access the Network Manager console at https://eusc-de-east-1.console.amazonaws-eusc.eu/networkmanager/home/
. -
Under Connectivity choose Cloud WAN.
-
On the Global networks page, choose the global network ID that for the core network you want to create a policy version for, and then choose Core network.
-
In the navigation pane, choose Policy versions.
-
Choose Create policy version.
-
Choose Segment actions - optional.
NoteYou must first have created your segments and network functions group.
-
If you want to create a service insertion action associated with a network functions group in the Service insertion section, choose Create, and then choose an Action. If you're not creating a service insertion action, this is an optional section.
-
Choose Create service insertion.
-
(Optional) Add Attachment policies. For more information, see Create an attachment policy in an AWS Cloud WAN core network policy version.