View a markdown version of this page

Networking - AWS Ops Agent (formerly DevOps Agent)

Networking

The Networking specialist is an AWS managed agent that maps and investigates the network resources in the AWS Regions that you select. Use it when an investigation involves connectivity, latency, or a networking service. For example, when an investigation finds that an application can't reach its database, AWS Ops Agent can ask the Networking specialist to check the path between them.

The Networking specialist only reads your resources. It doesn't change your network configuration.

Note

The Networking specialist is available in preview and is subject to change.

The following list shows the types of issues the Networking specialist can help investigate:

  • Connections that time out, are refused, or are reset

  • Resources that can't reach each other, or reach each other only sometimes

  • Latency or packet loss

  • Load balancer errors and unhealthy targets

  • Virtual private network (VPN) or Border Gateway Protocol (BGP) sessions that are down

For a complete list of supported services, see Supported resources in the AWS Ops Agent for networking User Guide.

For more information about adding and removing specialists, see Specialists.

Supported Regions

During preview, the Networking specialist is available in Agent Spaces in the following AWS Regions. If your Agent Space is in another Region, the Specialists section doesn't appear on the Capabilities tab.

  • US East (N. Virginia) us-east-1

  • US East (Ohio) us-east-2

  • US West (Oregon) us-west-2

  • Asia Pacific (Mumbai) ap-south-1

  • Asia Pacific (Singapore) ap-southeast-1

  • Asia Pacific (Sydney) ap-southeast-2

  • Asia Pacific (Tokyo) ap-northeast-1

  • Europe (Frankfurt) eu-central-1

  • Europe (Ireland) eu-west-1

  • Europe (Stockholm) eu-north-1

You can choose any of these Regions for the Networking specialist to monitor.

For the Regions where AWS Ops Agent is available, see Supported Regions.

Customer managed keys

If your Agent Space uses a customer managed key, you can still add the Networking specialist. AWS Ops Agent encrypts its record of Networking specialist activity with your customer managed key. Data that the Networking specialist stores to map and investigate your network isn't encrypted with your customer managed key. This data includes the network scope, network topology, and network security analysis. For more information, see Customer managed keys.

How the Networking specialist uses network scopes

The Networking specialist uses a network scope to define the accounts and Regions that it maps and investigates. When you add the Networking specialist, AWS Ops Agent creates a network scope in AWS Network Manager. The network scope is in the primary account and Region of the Agent Space, and covers the Regions that you select. The network scope name starts with devops-, followed by your AWS account ID and the Agent Space ID. If the Agent Space is in organization mode, the name starts with devops-org- instead.

AWS Ops Agent adds the primary account and each secondary account of the Agent Space to the network scope. The Networking specialist stays Pending until AWS Ops Agent finishes adding these accounts. When you add or remove a secondary account later, AWS Ops Agent updates the network scope.

If you remove the Networking specialist and add it again to the same Agent Space, AWS Ops Agent reuses the existing network scope.

When you remove the Networking specialist, AWS Ops Agent deletes the network scope. If AWS Ops Agent can't delete the network scope, it doesn't remove the Networking specialist, and the console shows the reason. Fix the cause, and remove the Networking specialist again. For example, removal can fail if your IAM identity is missing the networkmanager:DeleteNetworkScope permission.

Prerequisites

Before you add the Networking specialist, set up the following:

  • Permissions for your IAM identity.

  • If the Agent Space is in organization mode, trusted access for Networking.

  • If the Agent Space isn't in organization mode, the AWS Network Manager service-linked role in each account.

Permissions for your IAM identity

AWS Ops Agent uses your AWS Identity and Access Management (IAM) identity to create, update, and delete the network scope. This happens when you add or remove the Networking specialist. In addition to the permissions for specialists, your IAM identity needs the permissions in the following IAM policy:

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "networkmanager:ListNetworkScopes", "networkmanager:CreateNetworkScope", "networkmanager:GetNetworkScope", "networkmanager:UpdateNetworkScope", "networkmanager:DeleteNetworkScope", "networkmanager:ListNetworkScopePrincipals", "networkmanager:DisassociateNetworkScopePrincipal" ], "Resource": "*" } ] }
Note

The AIDevOpsAgentFullAccess AWS managed policy and the aidevops:* action don't include these permissions.

Trusted access for Networking (organization mode)

If the Agent Space is in organization mode, turn on trusted access for Networking before you add the Networking specialist. In the management account, open the AWS Ops Agent console and choose Agent spaces settings. In Organizations trusted access and delegated admins, select Networking, and then choose Enable. If the Agent Space is in a delegated administrator account, choose that account as the delegated administrator for Networking. For more information, including the AWS CLI steps, see Setting up AWS Ops Agent for networking across an AWS Organization.

Network Manager service-linked role

AWS Network Manager uses the AWSServiceRoleForNetworkManager service-linked role to call other AWS services on your behalf. If the Agent Space is in organization mode, Network Manager creates this role in each account that the network scope covers, and you can skip this section. Otherwise, each account that AWS Ops Agent adds to the network scope must have this role. This requirement includes the primary account and each secondary account.

Network Manager creates this role when you create your first global network. If an account doesn't have the role, run the following AWS Command Line Interface (AWS CLI) command in that account:

aws iam create-service-linked-role --aws-service-name networkmanager.amazonaws.com

If an account doesn't have this role, the Networking specialist shows Broken. For more information, see Service-linked roles in the AWS Network Manager User Guide.

Permissions reference

The following table describes why your IAM identity needs each action.

Action Why
networkmanager:ListNetworkScopes Finds an existing network scope to reuse.
networkmanager:CreateNetworkScope Creates the network scope.
networkmanager:GetNetworkScope Reads the network scope and checks that it's ready.
networkmanager:UpdateNetworkScope Updates the Regions that the network scope covers.
networkmanager:DeleteNetworkScope Deletes the network scope when you remove the Networking specialist.
networkmanager:ListNetworkScopePrincipals Reads which accounts the network scope includes.
networkmanager:DisassociateNetworkScopePrincipal Removes an account from the network scope.

Networking specialist settings

The following table describes the settings for the Networking specialist.

Setting Description
Regions The Regions that the Networking specialist maps and investigates. Select at least one Region. Select only the Regions where you have workloads.

To change the Regions, remove the Networking specialist, and then add it again with the new Regions.

Adding the Networking specialist

The following procedures show how to add the Networking specialist to an existing Agent Space and how to add it while creating a new Agent Space.

Adding the Networking specialist to an existing Agent Space

Use this procedure when your Agent Space already exists. Before you begin, see Prerequisites on this page.

  1. Open the AWS Ops Agent console.

  2. Open the Agent Space, and choose the Capabilities tab.

  3. In the Specialists section, choose Add specialist.

  4. In the Add specialist dialog, confirm that Specialist shows Networking. For Regions, select the Regions that you want the Networking specialist to monitor.

  5. Choose Add specialist.

The specialist shows the status Pending while AWS Ops Agent sets it up. When the status changes to Active, the Networking specialist is ready to use. If the status changes to Broken, see Specialist status.

Adding the Networking specialist while creating an Agent Space

Use this procedure to add the Networking specialist as part of the Agent Space creation wizard. Before you begin, see Prerequisites on this page.

  1. In the AWS Ops Agent console, start creating an Agent Space. For instructions on creating an Agent Space, see Creating an Agent Space.

  2. In the Specialist section, select Networking.

  3. For Regions, select the Regions that you want the Networking specialist to monitor.

  4. Finish creating the Agent Space.

If AWS Ops Agent can't add the Networking specialist, it still creates the Agent Space and shows a message. You can add the Networking specialist later on the Capabilities tab.