Agent Space Constellations
Agent Space Constellations is a feature of AWS Ops Agent that connects Agent Spaces. With it, AWS Ops Agent can coordinate one investigation across the Agent Spaces of several teams. For what an Agent Space is, see What are Ops Agent Spaces?. A constellation is a set of direct connections between Agent Spaces. Use a constellation when your incidents regularly cross team boundaries and each team keeps its own Agent Space.
This topic explains the relationship types and permissions of a connection, how AWS Ops Agent uses a constellation during an investigation, and the limits that apply, so that you can decide whether and how to connect your Agent Spaces. To get started, see Connecting Agent Spaces in a constellation.
Without a constellation, an investigation stays inside one Agent Space. With a constellation, you get the following capabilities in your Agent Space:
Cross-team investigations – AWS Ops Agent opens investigations in connected Agent Spaces.
Escalation – AWS Ops Agent escalates to the lead Agent Space that coordinates your incidents.
Shared findings – AWS Ops Agent reads the findings that a connected Agent Space produced.
For example, a checkout service's Agent Space finds that its errors come from a payments platform that another team owns. The payments team's Agent Space is connected as a dependency of the checkout Agent Space. AWS Ops Agent can therefore open an investigation in the payments Agent Space and use its findings.
Each Agent Space keeps its own AWS account access, integrations, users, and learned knowledge. A constellation doesn't merge Agent Spaces. Instead, it adds direct connections between pairs of Agent Spaces. Through each connection, one Agent Space can call a fixed set of AWS Ops Agent operations on the other.
Prerequisites
To connect two Agent Spaces, you need the following:
Two Agent Spaces in AWS Regions within the
awspartition. Agent Space Constellations isn't available in AWS GovCloud (US).An AWS Identity and Access Management (IAM) role that you register for each Agent Space.
An agreement with the owner of the other Agent Space, who creates their own side of the connection.
For the full list of prerequisites, see Connecting Agent Spaces in a constellation.
Relationship types
A connection always has one of two relationship types, and each side of a connection plays a role. Use lead and member when one team coordinates incidents for the others. Use consumer and dependency when your service relies on another team's service, but that team doesn't coordinate your incidents.
Lead and member describe how incidents are routed.
A lead Agent Space coordinates cross-team incidents. It engages its members for investigations and receives their escalations.
A member Agent Space investigates what it owns when its lead engages it. It escalates to its lead when the cause is outside what it owns.
Consumer and dependency model a service dependency.
A consumer Agent Space depends on another team's service. It engages its dependencies for investigations.
A dependency Agent Space owns a service that others depend on, such as a shared platform or database. It investigates what it owns when a consumer engages it. It doesn't escalate to its consumers or open investigations in them.
The following example constellation has five Agent Spaces in two groups of teams. The Commerce teams own the Website, Payments, and Mobile app Agent Spaces. The Infrastructure teams own the Database and Compute Agent Spaces. The example has the following connections:
Website is the lead of Payments. Website engages Payments for investigations, and Payments escalates to Website.
Payments is a consumer of Database. Payments engages Database for investigations, and Database doesn't engage or escalate to Payments.
Mobile app is a consumer of Compute. Mobile app engages Compute for investigations, and Compute doesn't engage or escalate to Mobile app.
Database is the lead of Compute. Database engages Compute for investigations, and Compute escalates to Database.
These are all the connections in the example. Payments is both a member and a consumer. Database is both a lead and a dependency, and Compute is both a member and a dependency.
The following diagram shows the five Agent Spaces in the example, grouped by team, and the lead and member and consumer and dependency connections between them.
The following table shows what each side of a connection can do.
| Action | Lead or member toward the other | Consumer toward its dependency | Dependency toward its consumer |
|---|---|---|---|
| The side can open an investigation in the other Agent Space. | Yes | Yes | No |
| The side can send messages to the other Agent Space's investigations. | Yes | Yes | No |
| The side can read the other Agent Space's investigations, journal records, and assets. | Yes | Yes | No |
| The side can read the other Agent Space's name and description. | Yes | Yes | Yes |
Escalation is agent behavior, not a permission. A member escalates to its lead with the same operations that a lead uses to engage a member, and both sides hold those operations. AWS Ops Agent decides during an investigation whether to engage or escalate.
An Agent Space can have one lead, any number of members, any number of dependencies, and up to 100 consumers at the same time. Two Agent Spaces can have only one connection between them.
To decide which connections to create, start with the way incidents already move between your Agent Spaces:
Start with the Agent Spaces that take part in the same recurring incidents.
Make the Agent Space that already coordinates cross-team incidents the lead.
Connect as members only the Agent Spaces that the lead regularly engages and that escalate to the lead.
Connect the Agent Spaces that you depend on as dependencies, not members, if they don't coordinate your incidents.
Connect a shared service that many unrelated Agent Spaces depend on as a dependency of each of them. An Agent Space can have only one lead, so a service that many unrelated Agent Spaces use has no natural lead.
Keep the constellation flat. Put related Agent Spaces under one lead instead of building chains of leads. Each handoff between Agent Spaces adds latency, and AWS Ops Agent decides where to route at each handoff, so each extra level adds another chance to route to the wrong Agent Space.
Don't connect two Agent Spaces directly if they're already connected through the same lead. For example, if two Agent Spaces are members of the same lead, don't also connect them to each other as a consumer and a dependency.
An Agent Space can be a member of one lead and the lead of other Agent Spaces at the same time, so you can nest leads. A chain of engagements and escalations can include at most 4 handoffs between Agent Spaces. That's enough for a hierarchy three levels deep: an investigation can escalate from a member to its lead and to that lead's lead, and then be engaged back down to a member in another branch.
You can also create a dedicated Agent Space to act as the lead. Do this when you want the lead to have its own users, separate from any other Agent Space. A dedicated lead separates users, not data: every member can still read all of the lead's investigations, journal records, and assets.
For instructions on creating a connection, see Connecting Agent Spaces in a constellation.
Permission model
The access that a connection grants applies to a whole Agent Space. You can't grant access at a finer level. What the other Agent Space can do depends on the relationship.
When your Agent Space is a lead, a member, or a dependency, the other Agent Space in the connection can perform every operation in the constellation permission set on your Agent Space. This applies to every investigation, journal record, and asset in your Agent Space. When your Agent Space is a consumer, its dependency can only read your Agent Space record. You can't limit a connection to specific investigations, specific operations, or specific data.
The constellation permission set is the set of AWS Ops Agent operations in the AWS managed policy AIDevOpsConstellationAccessPolicy. The following table lists these operations.
| Operation | What it allows |
|---|---|
aidevops:GetAgentSpace |
Read the Agent Space's name and description |
aidevops:CreateBacklogTask |
Open an investigation |
aidevops:UpdateBacklogTask |
Update an investigation task |
aidevops:GetBacklogTask |
Read an investigation task |
aidevops:ListBacklogTasks |
List investigation tasks |
aidevops:SendMessage |
Send a message to an investigation |
aidevops:ListExecutions |
List investigation runs |
aidevops:ListJournalRecords |
Read investigation journal records |
aidevops:GetAsset |
Read an asset |
aidevops:GetAssetContent |
Download an asset's content |
aidevops:GetAssetFile |
Read a file in an asset |
aidevops:ListAssets |
List assets |
aidevops:ListAssetFiles |
List the files in an asset |
The role that each side plays determines which side gets the constellation permission set:
Lead and member – The lead and the member have identical access to each other: each can perform every operation in the constellation permission set on the other. Lead and member describe how AWS Ops Agent routes work between the two Agent Spaces. They don't change permissions. Whether AWS Ops Agent engages a member or escalates to a lead is decided during an investigation, and by your skills and agent instructions. IAM doesn't enforce it. Don't use the lead or member role to limit what a connected Agent Space can access.
Consumer – The consumer can perform every operation in the constellation permission set on its dependency.
Dependency – The dependency can only read its consumer's Agent Space record, with
aidevops:GetAgentSpace.
When you connect two Agent Spaces, neither Agent Space gets any of the following:
Access to the other Agent Space's AWS accounts or resources. Each Agent Space investigates with its own IAM roles. However, findings that the other Agent Space already produced, such as journal records and assets, can include details about its resources.
Permission to change the other Agent Space's configuration, integrations, or users.
Access to Agent Spaces that the other Agent Space is connected to. Connections are not transitive. If A leads B and B leads C, A has no access to C.
Members of the same lead still share data through the lead. A lead's investigations include the findings that its members return. Because every member can read its lead's investigations, journal records, and assets, a member can read findings that other members of the same lead contributed. Treat a lead and all of its members as one data-sharing group.
AWS Ops Agent makes cross-Agent Space calls with an IAM role that you register for each Agent Space. AWS CloudTrail records these calls. For more information about the role, see Connecting Agent Spaces in a constellation.
How AWS Ops Agent uses a constellation
This section describes when and how AWS Ops Agent engages a connected Agent Space. A constellation doesn't change how an investigation starts. An investigation can start in any Agent Space in a constellation, including the lead. When an investigation starts in your Agent Space, AWS Ops Agent first uses your Agent Space's own alarms, tools, and knowledge. It engages a connected Agent Space only when the findings point to something that the connected Agent Space owns. It then does one of the following:
A lead engages one or more members by opening an investigation in each of them, and reads their findings.
A member escalates to its lead when the cause is outside what the member owns.
A consumer engages a dependency by opening an investigation in it, and reads its findings.
AWS Ops Agent never engages a connected Agent Space automatically for every investigation. A lead learns what its members own, and each member learns about its lead. AWS Ops Agent uses this knowledge to decide which Agent Space to engage. To influence these decisions, add skills or agent instructions to your Agent Space.
The other Agent Space runs the investigation with its own permissions and integrations. Integrations aren't shared across a constellation. For example, an integration that you configure in the lead isn't available to its members. The lead's investigation links to the investigations that it engaged, and each engaged investigation links back to the investigation that started it.
The engaged Agent Space returns a summary of its findings to the investigation that engaged it. The engaging Agent Space can also read the other investigation's findings and send follow-up messages to it. Users see only the investigations in the Agent Spaces that they can access. For example, a user who can access only the lead sees what each member returned to the lead, but not the member's own investigation.
An investigation that a connected Agent Space opens in your Agent Space counts against your Agent Space's quotas, such as concurrent investigations. For more information, see Quotas.
Investigations in a constellation are billed the same way as other investigations, by investigation hours in the Agent Space where each investigation runs. When an incident crosses Agent Spaces, AWS Ops Agent can run investigations in several connected Agent Spaces at the same time, so the incident uses more investigation hours in total than an incident that stays in one Agent Space.
A connection takes effect only after both Agent Spaces create it. Each Agent Space owner creates their own side, so no one can connect to your Agent Space without your agreement. AWS Ops Agent uses a connection only when its status is Active. It doesn't engage, escalate to, or read from an Agent Space whose connection is Pending or Broken. For more information about connection status, see Managing constellation connections.
Connecting production and non-production Agent Spaces
Keep production and non-production Agent Spaces in separate constellations, because you can't limit what a connection grants. If you connect a production Agent Space to a non-production one, the connection grants the non-production Agent Space the same access as any other connection. The following table describes the effects.
| Connection or risk | What the non-production Agent Space can do or expose |
|---|---|
| Lead or member access | Both Agent Spaces can perform every operation in the constellation permission set on each other. Users and agents in the non-production Agent Space can open investigations in the production Agent Space. They can also send messages to its investigations and read its journal records and assets. |
| Consumer access to a production dependency | A non-production consumer can open investigations in the production dependency and read its findings. |
| Data exposure | Production findings can include resource identifiers, log excerpts, and configuration details. When you connect the Agent Spaces, you expose these findings to anyone who can use the non-production Agent Space. |
| Load | Investigations that the non-production Agent Space opens in the production Agent Space count against the production Agent Space's quotas, such as concurrent investigations. |
If you must connect a production Agent Space to a non-production one, make the non-production Agent Space a dependency of the production Agent Space. In that direction, the production consumer can engage the non-production Agent Space. The non-production Agent Space can only read the production Agent Space's name and description. Don't give the non-production Agent Space any other role in a connection with a production Agent Space.
To enforce this rule, deny constellation connections in IAM for the principals that manage your production Agent Spaces. For an example policy, see Prevent principals from creating constellation connections.
Limits
Limits for Agent Space Constellations control how many connections an Agent Space can have and how you create and change them. You can't adjust any of these limits.
Connection counts
| Limit | Value |
|---|---|
| Leads per Agent Space | 1 (not adjustable) |
| Consumers per Agent Space | 100 (not adjustable) |
| Connections between two Agent Spaces | 1, of one relationship type (not adjustable) |
| Handoffs in one chain of engagements and escalations | 4 (not adjustable) |
Connection rules
| Rule | Description |
|---|---|
| Self-connection | An Agent Space can't connect to itself. |
| Availability | Both Agent Spaces must be in AWS Regions within the aws partition. Agent Space Constellations isn't available in AWS GovCloud (US). |
| Accounts | The Agent Spaces can be in the same AWS account, in different accounts, or in accounts that belong to different organizations in AWS Organizations. |
| Regions | The Agent Spaces can be in different AWS Regions. |
| Relationship type | You can't change the relationship type of a connection. Instead, remove the connection on both sides and create a new one. For instructions on removing a connection, see Managing constellation connections. |
| Creation method | You can create connections in the AWS Ops Agent console or with the AssociateService API operation, for example through the AWS CLI or an AWS SDK. You can't create connections with AWS CloudFormation. To control who can create connections, use IAM. For an example policy, see Prevent principals from creating constellation connections. |