CloudWatch Omni Access Grants
Overview
The AWS Cloud Operations blog post
Best practices for deploying Amazon CloudWatch Omni at enterprise scale
walks through rolling out CloudWatch Omni
across a large organization, following one example company from start to finish.
AnyCompany runs applications and AI agents across hundreds of AWS accounts,
split across three business units (BUs). BU1 and BU2 run in us-east-1, and
BU3 serves European customers from eu-west-2, where its telemetry must stay.
Before rollout, the platform team agreed on six requirements and met them by
making decisions in a fixed order.
This guide picks up where Part 5: Fine grain access controls of that post leaves off. The post shows what AnyCompany's grants look like. This guide goes deeper into access grants inside one space, BU1's: how Omni evaluates a request, how grants combine, which permission level to pick, how to design data scopes, how to give alerts and automation an identity, and how to manage and verify grants as code. It touches the post's other parts only where they affect grants, namely the platform team's access in Part 4 and the sensitive-data controls in Part 6.
A quick recap
The architecture is built from the outside in:
- Part 1: Create the Organization domain first. One sign-in URL for every team, backed by
IAM Identity Center and replicated to
eu-west-2, with a break-glass role for each space. - Part 2: Design centralization rules around data residency. Telemetry is routed by organizational unit into each BU's monitoring account, with data residency choosing the destination.
- Part 3: Create one space per BU monitoring account. Each BU monitoring account gets its own space, so spaces form the hard walls between BUs and Regions.
- Part 4: Give the platform team one sign-in across spaces. The platform administrators' group holds Space Admin in every space.
- Part 5: Fine grain access controls. Inside BU1's space, each team gets a grant
with a permission level and a data scope, shown in a BU1 access table and
a
claims-agentgrant example. - Part 6: Protect sensitive data in layers. Prompts are protected by redaction at capture time, masking at ingestion, and scoped grants for reviewers.
Taken together, these parts lead to one guiding principle: use spaces to separate BUs and Regions, and use grants for every other access decision.
What this guide adds
Part 5: Fine grain access controls shows what AnyCompany's grants look like. This guide looks at how they behave once real teams, groups, alerts, and automation start using them.
That depth matters because grants are not walls the way spaces are. A grant is a permission level plus an optional read-time filter, and grants only ever add access. A member who belongs to two groups gets the combined access of both. An alert reads with its access profile's permissions, not its author's. A pipeline using its own IAM credentials isn't bound by grants at all. Most access mistakes at enterprise scale come from treating a grant like a wall.
This table shows where each of AnyCompany's six requirements is met, and which ones this guide takes further:
| Requirement | Met by | Where it is covered |
|---|---|---|
| 1. One sign-in URL backed by the existing identity provider | Organization domain with IAM Identity Center | Part 1: Create the Organization domain first |
| 2. Each BU sees only its own telemetry | One space per BU monitoring account | Part 2: Design centralization rules around data residency and Part 3: Create one space per BU monitoring account |
3. EU telemetry stays in eu-west-2 | Centralization rules and a separate space for BU3 | Part 2: Design centralization rules around data residency and Part 3: Create one space per BU monitoring account |
| 4. The platform team can reach every BU's view | A Space Admin grant in each space | Part 4: Give the platform team one sign-in across spaces; this guide covers keeping that grant small and safe |
| 5. Inside a BU, teams see only the applications and agents they own | Scoped grants | This guide |
| 6. Prompts from sensitive agents stay with a small group of reviewers | Scoped grants, access profiles, and capture-time redaction | This guide, with Part 6: Protect sensitive data in layers |
By the end, you'll know how Omni evaluates each request, how grants combine, where data scopes stop protecting you, how to give alerts and automation the narrowest identity that works, and how to manage the same access model as code across every BU space.
When to use this
This guide is for anyone who manages access inside one or more Omni spaces. It is most useful when any of the following is true:
- You are turning AnyCompany's access table into real grants. You need the complete grant definitions, not just the claims-agent fragment, and you want them in code so every BU space gets the same model.
- More than one team shares a space. Each team should see the services, agents, or accounts it owns. In the AnyCompany model that is checkout SREs, agent developers, and claims reviewers inside BU1.
- A space holds content that only some members should read. Agent spans carry prompts and responses, and a grant decides who reads those rows.
- Work runs when nobody is signed in. Alerts and Slack investigations need an identity with just enough access, and that identity can quietly read more than the person who created the alert.
- Automation calls Omni with its own IAM credentials. Pipelines and SDK clients are not constrained by space grants unless you make them so.
- You are auditing access. You need to prove who can read what, and why a given member sees a given row.
If you need to control what telemetry is captured or stored, rather than who can read it, that is data protection, covered in Part 6: Protect sensitive data in layers and in Protect sensitive data. A grant filters at read time and never changes stored data.
Guidance
The guidance follows the order you meet the decisions when you build out BU1: how a request is evaluated, how grants combine, which level to pick, how to design data scopes, how to handle unattended work and automation, and how to operate grants over time. Each recommendation states what to do, why, and the trade-off if you skip it.
Permission level
Viewer, Editor, Space Admin, or Custom
Every grant carries one level. Viewer reads the whole space, Editor adds create, change, and delete for resources other than integrations, and Space Admin adds members, permissions, and integrations. Custom is an allowlist of exact actions.
Pick the lowest level that does the job; the tiers stack, so the highest grant a member holds wins.
Tiers are space-wide. Narrowing them needs action scopes, a Custom grant, or a data scope.
Set your identifiers once so every CLI example can reuse them. In the
AnyCompany model these are the domain and the BU1 space in bu1-monitoring,
us-east-1:
DOMAIN_ID=d-abcde12345
SPACE_ID=11111111-2222-3333-4444-555555555555 # Space 1, bu1-monitoring, us-east-1
Start from AnyCompany's BU1 access model
The BU1 access table (Table 2) is the target state for Space 1. It is a good model, and it is worth reading each row as the grant Omni actually evaluates:
| IAM Identity Center group | Level (API value) | Data scope | What Omni enforces |
|---|---|---|---|
bu1-platform-admins | Space Admin (SPACE_ADMIN) | None | Every row of every signal, plus member, permission, and integration management |
bu1-checkout-sre | Editor (READ_WRITE_DELETE) | Logs and traces, By service: checkout-api, payments-api, orders-db-proxy | Log and trace rows whose service.name is one of the three; all metrics; create, change, and delete on non-integration resources |
bu1-agent-dev | Editor (READ_WRITE_DELETE) | Logs and traces, By agent: support-agent, returns-agent | Log and trace rows from those two agents only; all metrics; same Editor actions |
bu1-claims-reviewers | Viewer (READ) | Logs and traces, By agent: claims-agent | Log and trace rows from claims-agent only, including its prompts and responses; all metrics; read-only |
Three things in that last column are easy to miss, and the rest of this guide returns to each:
- "All metrics" appears on every row. A data scope filters log and trace rows only. If a team must not see a metric, you control that with actions, not with a scope.
- The Editor rows can do more than read. Editor includes
cloudwatch:AssumeAccessProfile, which means a scoped Editor can attach an alert to a profile whose reach is wider than their own scope. See how access profiles work. - A scope holds only if every grant the member holds is scoped. A member who also belongs to a group with an unscoped grant sees everything, whatever this table says.
Understand how Omni evaluates a request
Every action in a space passes two independent checks. The first is the grant: its permission level and any data scope decide whether a person may request an operation and which rows they may see. The second is the Omni Space Access role, the IAM role the space assumes to reach your AWS resources, which decides whether the space itself may carry out that operation. When a read is blocked, first work out which layer stopped it, because each layer fails differently and has a different fix.
Treat the Space Access role as an account-wide ceiling, not a per-space control. A member's operation succeeds only when their grant allows it and the Omni Space Access role holds the underlying AWS permission. Raising a member to Space Admin never adds a permission the role lacks. One space operator role serves every space in the account, so you cannot isolate two spaces in the same account from each other by giving them different roles. In AnyCompany's layout each BU has its own monitoring account, so each BU also gets its own ceiling. If you ever host spaces for two BUs in one account (in different Regions, since only one space can exist per account and Region), they share that ceiling. The trade-off of ignoring this is subtle: you might tighten the role for one BU's compliance needs and silently break the other BU's evaluations or alerts.
Know that signed-in sessions and raw IAM callers are authorized
differently. When a member works in a space, Omni issues credentials scoped
to that space, and the member's access is limited to their grants. When a
principal calls Omni with its own IAM credentials, such as a pipeline role or an
SDK client, a missing grant does not deny the request; the request is
authorized by that principal's IAM policy. The managed
CloudWatchOmniSpaceAccessPolicy
gates its space actions on the condition key
cloudwatch:HasAccessGrant, and you should do the same on roles you create
(see Constrain automation at the IAM layer).
If you skip this, an automation role with broad cloudwatch:* permissions can
read telemetry that no grant in the space would have allowed.
Expect interactive reads, including the Omni agent's, to run as the member. Omni uses forward access session credentials when it runs a telemetry query, so the read is authorized as the member rather than as the service. The Omni agent also reads with the member's own access, which is why its answers respect the member's data scope.