Create a AWS Cloud WAN prefix list association
Create a prefix list association using the console
Access the Network Manager console at https://console.aws.amazon.com/networkmanager/home/
. -
Under Connectivity, choose Global networks.
-
On the Global networks page, choose the global network ID.
Under Core network in the navigation pane, choose Prefix list associations.
-
Choose Create prefix list association.
-
For Prefix list ARN, enter the ARN of the prefix list you want to create an association for.
-
For Core Network Id field, enter the id of the core network you want to associate a prefix list to.
-
In the Prefix list alias field, enter a name you want associated with the prefix list ARN.
-
Choose Create prefix list association.
Create a prefix list association using the AWS CLI
Use the create-core-network-prefix-list-association command.
Required parameters:
--core-network-id- The ID of your Cloud WAN core network--prefix-list-arn- The ARN of the prefix list to associate--prefix-list-alias- A human-readable alias for the prefix list association
The following command creates a prefix list association for the specified core network and prefix list:
aws networkmanager create-core-network-prefix-list-association \ --core-network-id core-network-0123456789abcdef0 \ --prefix-list-arn arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456789abcdef0 \ --prefix-list-alias "corporate-networks"
The command returns the following output:
{ "CoreNetworkPrefixListAssociation": { "CoreNetworkId": "core-network-0123456789abcdef0", "PrefixListArn": "arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456789abcdef0", "PrefixListAlias": "corporate-networks" } }
Create a prefix list association using the API
Use the CreateCoreNetworkPrefixListAssociation operation.
Required parameters:
CoreNetworkId- The ID of your Cloud WAN core networkPrefixListArn- The ARN of the prefix list to associatePrefixListAlias- A human-readable alias for the prefix list association
The following HTTP request creates a prefix list association:
POST /core-networks/core-network-0123456789abcdef0/prefix-list-arn/arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456789abcdef0/prefix-list-alias/corporate-networks HTTP/1.1 Content-Type: application/x-amz-json-1.1 X-Amz-Target: NetworkManager.CreateCoreNetworkPrefixListAssociation { "CoreNetworkId": "core-network-0123456789abcdef0", "PrefixListArn": "arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456789abcdef0", "PrefixListAlias": "corporate-networks" }
The API returns the following response:
HTTP/1.1 200 OK Content-Type: application/x-amz-json-1.1 { "CoreNetworkPrefixListAssociation": { "CoreNetworkId": "core-network-0123456789abcdef0", "PrefixListArn": "arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456789abcdef0", "PrefixListAlias": "corporate-networks" } }