AWS Builder Center: Learn, Build and Connect with builders in the AWS community
AWS Builder Center is the official home for builders on AWS. Share and read what others are working on, follow people who inspire you, explore training and workshops, and find tools to support what you're building.
How do I troubleshoot AWS DevOps Agent topology that's empty or missing resources?
I want to troubleshoot an AWS DevOps Agent topology that's empty, incomplete, or stuck after I create an Agent Space.
Resolution
Confirm if your DevOps Agent topology is in the empty, stuck, or stale state, then troubleshoot your issue based on your findings.
To check the state of your topology, complete the following steps:
- Open the AWS DevOps Agent console.
- Select your Agent Space.
- Open the DevOps Agent web app.
- Choose the Topology page to review your AWS DevOps Agent topology.
Troubleshoot topology that's empty after you create your Agent Space
After you create an Agent Space for AWS DevOps Agent, your topology might appear empty for several minutes. For accounts with a large number of resources, this process takes longer.
If the Topology page shows that AWS DevOps Agent is learning resources, then wait and refresh the page.
If the topology stays empty after discovery completes, then continue with the following sections.
Troubleshoot topology that's stuck on Analyzing your topology or Mapping entities
Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.
Blocked foundational discovery components cause your topology to stay in Analyzing your topology or Mapping entities: Analyzing resources and their relationships status for over an hour. Blocked foundational discovery components also cause the Topology page to show zero resources or zero relationships for over an hour.
To unblock your foundational discovery component, check that your tag filters match your resources. Then, confirm that your Agent Space role has the necessary AWS Identity and Access Management (IAM) permissions.
Tag filters don't match your resources
If you set up tag filters when you create your Agent Space, then AWS DevOps Agent uses those tags to filter discovered resources. If the filter tag keys or values don't match any deployed resources, then discovery stalls.
To remove or update the tag filters, complete the following steps:
- Open the AWS DevOps Agent console.
- Select your Agent Space.
- Choose the Capabilities tab.
- In the Cloud section, choose Edit on your AWS account association.
- Under Include AWS tags, remove or correct the tag filters.
- Save the changes.
After you remove the filters, AWS DevOps Agent discovers the resources that the Agent Space role has permission to read.
The Agent Space role lacks necessary IAM permissions
The Agent Space role must have the AIDevOpsAgentAccessPolicy AWS Managed Policy attached. Without it, the agent can't list AWS CloudFormation stacks or query AWS Resource Explorer.
To verify the role has the managed policy attached, run the following list-attached-role-policies AWS CLI command:
aws iam list-attached-role-policies --role-name agent-space-role
Note: Replace agent-space-role with the name of your Agent Space role.
If the policy is missing, then attach it with the following attach-role-policy AWS CLI command:
aws iam attach-role-policy --role-name agent-space-role --policy-arn arn:aws:iam::aws:policy/AIDevOpsAgentAccessPolicy
Note: Replace agent-space-role with the name of your Agent Space role.
Troubleshoot a Topology page that displays only resources that you deploy through CloudFormation
AWS DevOps Agent uses Resource Explorer for resources that you don't deploy through CloudFormation. If you don't activate Resource Explorer in the same AWS Region as your Agent Space, then discovery stalls when the agent queries it. If you don't activate Resource Explorer, then only CloudFormation stack resources appear on the Topology page.
Important: You must activate Resource Explorer with an aggregator index in the same as your Agent Space.
To verify you configured Resource Explorer, run the following list-indexes AWS CLI command:
aws resource-explorer-2 list-indexes --region your-region
Note: Replace your-region with the Region where you created your Agent Space.
If the output of the command is empty, then complete the following steps to activate Resource Explorer:
- Open the Resource Explorer console.
- Choose Quick setup.
- Choose the Region for your aggregator index.
- Wait for the index status to change to Active.
When Resource Explorer finishes indexing, AWS DevOps Agent includes the indexed resources during the next topology refresh.
Note: For accounts with a large number of resources, indexing takes up to 36 hours.
Troubleshoot a recently added resource type that isn't visible
The Agent Space role must have the AIDevOpsAgentAccessPolicy managed policy attached.
If you use a custom policy instead of the managed policy, then confirm that your custom policy includes all the permissions in the AIDevOpsAgentAccessPolicy.
Note: AWS updates the managed policy when DevOps Agent Topology adds new resource types, so review your custom policy periodically to keep it current.
If the Agent Space details page shows a Capability gap identified banner, then the agent didn't call AWS API operations in your account. To resolve the banner, check that you attached the correct trust policy and managed policy to the Agent Space role.
Troubleshoot topology that's stale after an infrastructure change
AWS DevOps Agent refreshes the topology on a service-managed schedule. New, modified, or deleted resources don't appear immediately. To regenerate the topology, complete the following steps:
- Open the DevOps Agent web app for your Agent Space.
- Choose the Topology page.
- Choose Regenerate topology.
The DevOps Agent web app rebuilds the topology graph from the latest CloudFormation stack data and Resource Explorer index. Regeneration typically completes within a few minutes.
If regeneration stops responding, then run the following list-backlog-tasks AWS CLI command:
aws devops-agent list-backlog-tasks --agent-space-id your-agent-space-id
Note: Replace your-agent-space-id with the Universally Unique Identifier (UUID) of your Agent Space.
In the output, note your task ID.
Then, run the following list-executions AWS CLI command to check the status of your regeneration:
aws devops-agent list-executions --agent-space-id your-agent-space-id --task-id your-task-id
Note: Replace your-agent-space-id with the UUID of your Agent Space and your-task-id with the task ID from the first command.
If the list-backlog-tasks command's status remains IN_PROGRESS for a long period, then contact AWS Support with the task ID and execution ID.
Troubleshoot resources in another AWS account that aren't visible
If your application spans multiple AWS accounts, then add each additional account as a secondary account.
To add a secondary account, complete the following steps:
- Open the DevOps Agent console.
- Select your Agent Space.
- Choose the Capabilities tab.
- In the Cloud section, choose Secondary sources, and then choose Add.
- Choose AWS as the account source, then choose Add.
- Follow the console wizard to configure the IAM role in the secondary account.
Note: The console provides the role name, trust policy, and inline policy.
For more information, see Connecting multiple AWS Accounts.
In the console, the secondary account role sometimes validates resources with check marks when the managed policy is missing or incomplete. If the agent can't list CloudFormation stacks or query Resource Explorer in the secondary account, then re-attach AIDevOpsAgentAccessPolicy to the secondary account role.
Related information
Configuring capabilities for AWS DevOps Agent
- Tags
- AWS DevOps Agent
- Language
- English

This article was reviewed and updated on 2026-08-03.
Relevant content
asked 9 months ago
- Accepted Answer
asked 3 months ago
asked 5 months ago
- Accepted Answer
asked 2 months ago
asked 4 months ago