How AWS Ops Agent for networking works
AWS Ops Agent for networking runs inside an AWS Ops Agent Agent Space. When you add the Networking specialist to an Agent Space, AWS Ops Agent creates a network scope that defines the principals and Regions that AWS Ops Agent for networking analyzes.
Concepts
Network scopes
A network scope has the following properties:
It's created in the primary account and Region of the Agent Space.
Its name starts with
devops-, followed by the AWS account ID and the Agent Space ID.It covers the Regions that you select, which are the Regions where your workloads run. These can differ from the Region where the scope is created.
AWS Ops Agent manages its lifecycle. You can view a network scope, but you can't create, change, or delete it yourself.
Removing the Networking specialist deletes the network scope. If you later add it again to the same Agent Space and the network scope still exists, AWS Ops Agent for networking reuses that scope.
For more information about network scope states and principals, see Working with network scopes.
Account mode and organization mode
The way you add accounts to an Agent Space sets the access mode of its network scope. The access mode is set when the scope is created, and you can't change it afterward.
| How you add accounts | Access mode | What the scope includes |
|---|---|---|
| You add accounts one at a time (account mode). | ACCOUNTS |
The primary account and each secondary account. The scope is updated as secondary accounts are added or removed. |
| You use AWS Organizations (organization mode). | ORGANIZATIONS |
The covered accounts, which are the principals. The organization and organizational units (OUs) that you specify contribute their member accounts. Accounts that later join a covered OU are added automatically by AWS Ops Agent for networking. |
What AWS Ops Agent for networking reads
AWS Ops Agent for networking is read-only. It is always on and continuously reads your current network configuration, so when you ask a question it works from the latest configuration it has read. Its view of your network can be up to 25 minutes behind, so a resource that changed in the last 25 minutes might not appear yet. It reads from the following sources:
Network configuration and topology – AWS Ops Agent for networking builds an understanding of your network topology through the AWS Network Manager service-linked role, and uses the IAM roles associated with your Agent Space to describe resources in each account, including VPCs, subnets, route tables, security groups, network ACLs, gateways, attachments, connections, and more.
Network security findings from network security analysis, a capability of AWS Ops Agent for networking.
AWS Health events for networking services.
Amazon CloudWatch metrics and alarms for your networking services.
Monitoring data from Amazon CloudWatch Internet Monitor and Amazon CloudWatch Network Flow Monitor, if you use them.
AWS CloudTrail events, to see who changed a route or resource and when.
AWS documentation.
Once network security analysis completes a scan of your network, its findings are available as an artifact within AWS Ops Agent. If you use AWS Security Hub, the findings are also visible there.
Network security analysis policy
In organization mode, AWS Ops Agent for networking creates one AWS Organizations declarative policy of the network security analysis policy type for each network scope. AWS Ops Agent for networking attaches the policy to the principals of the scope so that analysis runs in those accounts and Regions.
Don't edit, detach, or delete this policy. AWS Ops Agent for networking manages and updates it. If you edit it, findings can become incomplete or missing.
AWS Ops Agent for networking manages this policy and checks it on every account change, Region change, and hourly re-check. If the policy's enabled Regions no longer match the scope's Regions, AWS Ops Agent for networking regenerates the policy document and reattaches it to the scope's principals. Changes you make to the policy's enabled Regions are reverted before they reach the covered accounts. If you delete or detach the policy, AWS Ops Agent for networking restores it on the next round. Until then, the policy can be out of sync. If your organization blocks a change, the scope keeps its previous coverage and reports the cause in its state reason.
What AWS Ops Agent for networking doesn't do
It doesn't change your resources. It only recommends changes.
It doesn't start network security analysis scans on demand. Network security analysis runs a new scan every 24 hours, and AWS Ops Agent for networking reads the stored findings.
It doesn't certify that your network is secure or compliant.
It analyzes hybrid connections only up to the AWS side. It has no visibility into on-premises networks, partner networks, or third-party appliances.
It doesn't support IPv6 during preview.