View a markdown version of this page

Manage context store associations - AWS Network Manager

Manage context store associations

A context store association links a transit gateway to a context store. While associated, the context store collects context for resources connected to the transit gateway. When you disassociate the transit gateway, context collection stops and its resource context is removed from the store.

Note the following about context store associations:

  • Registering a transit gateway with a global network and associating it with a context store are separate steps. Register the transit gateway with the same global network as the context store before you associate it. For more information, see Transit gateway registrations in AWS Global Networks for Transit Gateways.

  • You can associate a transit gateway with only one context store.

  • You can associate transit gateways from more than one Region with a single context store. Each resource context identifies the Region of the resource.

Associate a transit gateway with a context store using AWS Network Manager

Associate a transit gateway with a context store to collect context for resources connected to it. The association moves from ASSOCIATING to ASSOCIATED. If the association moves to FAILED, disassociate the transit gateway and then associate it again.

To associate a transit gateway with a context store
  1. Open the AWS Network Manager console.

  2. Under Connectivity, choose Global networks.

  3. On the Global networks page, choose the global network ID.

  4. In the navigation pane, choose Context Store.

  5. Choose the Associations tab, and then choose Create association.

  6. Choose the transit gateway to associate, and then choose Add.

  7. Wait until the association state is ASSOCIATED.

To associate a transit gateway using the AWS CLI

Use the associate-context-store command. Specify the ID of the context store and the Amazon Resource Name (ARN) of the transit gateway.

View context store associations using AWS Network Manager

View all transit gateways associated with a context store or the details and state of a specific association.

To view context store associations
  1. Open the AWS Network Manager console.

  2. Under Connectivity, choose Global networks.

  3. On the Global networks page, choose the global network ID.

  4. In the navigation pane, choose Context Store.

  5. Choose the Associations tab, which lists the transit gateways that are associated with the context store, including the state of each association.

To list context store associations using the AWS CLI

Use the list-context-store-associations command. Specify the ID of the context store.

To view a single context store association using the AWS CLI

Use the get-context-store-association command. Specify the ID of the context store and the Amazon Resource Name (ARN) of the transit gateway. The command returns the details of the association, including its state and creation time.

Disassociate a transit gateway from a context store using AWS Network Manager

Disassociate a transit gateway to stop collecting its resource context. The association enters the DISASSOCIATING state and is removed when the process completes.

Disassociate every transit gateway from a context store before you delete the context store. For more information, see Delete a context store.

To disassociate a transit gateway from a context store
  1. Open the AWS Network Manager console.

  2. Under Connectivity, choose Global networks.

  3. On the Global networks page, choose the global network ID.

  4. In the navigation pane, choose Context Store.

  5. Choose the Associations tab.

  6. Select the transit gateway, and then choose Delete association.

  7. In the confirmation dialog box, choose Delete association.

To disassociate a transit gateway using the AWS CLI

Use the disassociate-context-store command. Specify the ID of the context store and the Amazon Resource Name (ARN) of the transit gateway.