IAM policies to use CloudWatch Omni
The space operator role carries CloudWatchOmniSpaceAccessPolicy as
its base policy, with CloudWatchOmniModelInferencePolicy and
CloudWatchOmniAWSIntegrationPolicy as optional additions chosen
during setup. Between them they cover using a space: querying telemetry, managing
alerts and dashboards, and creating and running evaluations. None covers creating a
space or a domain, so setup needs permissions you grant yourself. On the space
operator role, replace CloudWatchOmniAWSIntegrationPolicy with
CloudWatchOmniAWSIntegrationPolicyV2. See The policies. CloudWatch Omni provides
further managed policies for other roles, including
CloudWatchOmniDomainAccessPolicy for organization domain
administration and CloudWatchOmniProvisioningPolicy for member account
setup. For the complete set, see AWS managed policies for CloudWatch Omni.
This page enumerates what each policy grants and why, discloses the permissions that read metadata across your whole account, and lists the permissions you must add separately. For how CloudWatch Omni works with IAM in general (resource types, condition keys, and the roles setup creates), see Identity and access management for CloudWatch Omni.
Topics
Permissions in CloudWatchOmniModelInferencePolicy
This policy grants model inference and nothing else. It is attached only to spaces that use the prompt playground or run evaluations that invoke a model. A space that only views telemetry does not receive it, and a space can create and view its evaluation configuration without it. Only running a model requires it.
| Action | Resources | Why CloudWatch Omni needs it |
|---|---|---|
bedrock:InvokeModel,
bedrock:InvokeModelWithResponseStream |
Foundation models and inference profiles | Runs the model you select in the prompt playground, and the model an evaluator uses to score a result. |
bedrock-mantle:CreateInference |
Amazon Bedrock Mantle projects | Runs a model served through Amazon Bedrock Mantle rather than as a Bedrock foundation model. |
bedrock-mantle:CallWithBearerToken |
All resources | Authenticates the Amazon Bedrock Mantle inference call above. |
Every action except bedrock-mantle:CallWithBearerToken is
restricted to your own account by an aws:ResourceAccount condition,
so a space can invoke only the models, inference profiles, and projects in the
account it belongs to. CallWithBearerToken has no resource type in
the IAM action model, so it cannot be scoped to a resource or narrowed by a
condition. The same action appears with the same unscoped resource in the AWS
managed policy BedrockAgentCoreFullAccess, which uses it for the same
purpose.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AgentCoreEvaluationBedrockInvoke", "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": [ "arn:aws:bedrock:*::foundation-model/*", "arn:aws:bedrock:*:*:inference-profile/*" ], "Condition": { "StringEquals": { "aws:ResourceAccount": "${aws:PrincipalAccount}" } } }, { "Sid": "AgentCoreEvaluationBedrockMantleInference", "Effect": "Allow", "Action": "bedrock-mantle:CreateInference", "Resource": "arn:aws:bedrock-mantle:*:*:project/*", "Condition": { "StringEquals": { "aws:ResourceAccount": "${aws:PrincipalAccount}" } } }, { "Sid": "AgentCoreEvaluationBedrockMantleCallWithBearerToken", "Effect": "Allow", "Action": "bedrock-mantle:CallWithBearerToken", "Resource": "*" } ] }
Permissions in CloudWatchOmniSpaceAccessPolicy
This is the base policy, always attached. It grants the space experience and the management side of evaluation. The table groups its permissions by what they are for, and gives the condition that limits each group.
| Permission group | What it covers | How it is limited |
|---|---|---|
The space experience, in the cloudwatch
namespace |
Space and access-grant management, telemetry query sessions,
temporary credentials for reading space data, the context
graph, alerts, service level objectives (SLOs), dashboards,
access profiles, views,
lookups, user preferences, threads, agent assets, experiments,
observations and anomalies, integrations and their targets,
intelligence configuration, writing GitHub change events to your
account's default CloudWatch Dataset, and tagging. |
Every action requires the condition
cloudwatch:HasAccessGrant to be
true, so a principal with no grant in the space
cannot use any of them. |
| Looking up IAM Identity Center users and groups | identitystore:ListUsers,
identitystore:ListGroups,
identitystore:DescribeUser, and
identitystore:DescribeGroup against your
Identity Store directories, users, and groups, used when you
search for a person or group to grant access to a space. |
The call must arrive through CloudWatch (aws:CalledVia
is cloudwatch.amazonaws.com), so the role cannot
call Identity Store directly. |
| Reading notification topics | sns:GetTopicAttributes, so CloudWatch Omni can check
an Amazon SNS topic you choose for Intelligence notifications. |
The call must arrive through CloudWatch (aws:CalledVia
is cloudwatch.amazonaws.com). It isn't limited to
topics in your account. |
| A deny on tagging outside CloudWatch Omni | An explicit Deny on the three tagging actions
for every resource other than the CloudWatch Omni resource
types. |
Prevents a space session from tagging a classic CloudWatch resource, such as an alarm or a CloudWatch dashboard, to gain access at the resource level. |
| Passing a role to CloudWatch Omni | iam:PassRole, so you can hand CloudWatch Omni the
service role you created for the space. |
Same account, and iam:PassedToService must be
cloudwatch.amazonaws.com. The role name cannot
be restricted by prefix because you supply your own
role. |
| Passing a role for online evaluations | iam:PassRole for the evaluation execution role,
so an online evaluation can run when nobody is signed
in. |
Restricted to roles named
service-role/AgentCoreEvaluationRole* in your
own account, passed only to
bedrock-agentcore.amazonaws.com. |
| Creating the partner integration role | iam:CreateRole,
iam:PutRolePolicy, and
iam:GetRoleTemplateVersion, so CloudWatch Omni can
create the IAM role in your account that a partner investigation
agent uses to read your CloudWatch data within your access grants,
when a space admin connects a third-party agent. |
Restricted to roles named
service-role/CloudWatchExternalAgentIntegration-*
in your own account (aws:ResourceAccount equals
${aws:PrincipalAccount}), only when the call
arrives through CloudWatch (aws:CalledVia is
cloudwatch.amazonaws.com), and only for roles
created from the CloudWatch-owned role template
CloudWatchExternalAgentIntegrationRoleTemplate
(iam:RoleTemplateARN).
iam:GetRoleTemplateVersion is limited to that
template. |
| Creating the AWS DevOps Agent investigation role | iam:CreateRole,
iam:AttachRolePolicy, and
iam:GetRoleTemplateVersion, so CloudWatch Omni can
create the investigation role in your account and attach its
policy when you connect the AWS DevOps Agent
integration. |
Restricted to roles named
service-role/CloudWatchOmniDevOpsAgentInvestigationRole-*
in your own account, only when the call arrives through CloudWatch
(aws:CalledVia is
cloudwatch.amazonaws.com), and only for roles
created from the CloudWatch-owned template
CloudWatchOmniDevOpsAgentInvestigationAccessRoleTemplate
(iam:RoleTemplateARN).
iam:AttachRolePolicy is further limited by
iam:PolicyARN to the single AWS managed policy
CloudWatchOmniDevOpsAgentInvestigationServiceRolePolicy. |
| Reading ingestion users | iam:ListUserTags and
iam:ListServiceSpecificCredentials, so the
console can show the bearer tokens that already exist. |
Restricted to users under the omni/ path named
OmniIngestionUser-* in your own account.
Read-only: CloudWatch Omni cannot create, rotate, or delete
them. |
| Reading a customer managed key | kms:DescribeKey, so the console can validate and
display a key you select. |
Same account. Metadata only, and it does not permit any cryptographic operation. |
| Encrypting space content | kms:Decrypt and kms:GenerateDataKey
against the key you chose for the space. |
Four conditions together: same account, the key carries the
cw-omni tag set to true, the call
arrives through CloudWatch, and the encryption context names a space
ARN — so this grant cannot
be used for any other CloudWatch resource type. |
| Reading Intelligence data under your key | kms:Decrypt and kms:GenerateDataKey
against the key you set for Intelligence. |
Four conditions together: same account, the key carries the
cw-omni tag set to true, the call
arrives through CloudWatch, and the encryption context names your
account (aws:cloudwatch:account or
aws-crypto-ec:aws:cloudwatch:account). |
| Encrypting lookup content | kms:Decrypt and kms:GenerateDataKey
against the customer managed key you choose for a
lookup. |
Four conditions together: same account, the key carries the
cw-omni tag, the call arrives through CloudWatch, and
the encryption context names a lookup ARN. A key without the
cw-omni tag cannot be used for a
lookup. |
| Reading an encrypted IAM Identity Center directory | kms:Decrypt against the customer managed key
that encrypts your IAM Identity Center directory, so the
directory lookups above can read it. |
The call must come through Identity Store
(kms:ViaService), and the encryption context
must include the
aws:identitystore:identitystore-arn key, so it
applies only to Identity Store data. It has no same-account
condition, because the directory and its key are often in your
organization's management account; the key policy remains the
control. |
| Encrypting evaluator material | kms:Decrypt and kms:GenerateDataKey
for evaluator and model-provider key material at the time it is
used. |
Same account, the request must arrive via
bedrock-agentcore.amazonaws.com, and the
encryption context must name an evaluator ARN in your own
account. |
| Evaluators, datasets, and online evaluation configurations | Full lifecycle of the Amazon Bedrock AgentCore resources that back evaluation, including running an evaluation and tagging these resources. | Scoped separately to the evaluator,
dataset, and
online-evaluation-config resource types, each
in your own account. |
| Listing the model catalog | bedrock:ListFoundationModels and
bedrock:ListInferenceProfiles, so you can pick
a model when you create an evaluator or open the
playground. |
Listing only. Invoking a model requires the separate inference policy above. |
| Reading the resources your agents use | Read-only Get and List actions for
the Amazon Bedrock AgentCore memories, gateways and their targets, custom
browsers, custom code interpreters, payment managers, policy
engines, and credential providers in your account, so CloudWatch Omni
can show details for the ones your agents' traces name. Also
bedrock:GetKnowledgeBase for knowledge bases in
your account. |
Same account, and read-only. |
| Estimating model cost | pricing:GetProducts, to look up model prices
when CloudWatch Omni estimates the cost of an evaluation. |
Reads the public AWS Price List only. The API has no resource type, so it cannot be scoped further. |
| Writing evaluation results | Creating the log groups, log streams, and log events that record evaluation scores and annotations in CloudWatch Logs. | Log streams and events are written only under
/aws/cloudwatch/; under
/aws/bedrock-agentcore/evaluations/ only the
log group itself can be created. Both in your own
account. |
| Choosing which telemetry an online evaluation reads | logs:DescribeLogGroups for the log group picker,
and reading and appending a field index on the trace log group
so sampling can filter spans by service name. |
Same account. The picker lists any log group in the account,
because telemetry does not always follow the /aws/
naming conventions. Names only, not contents. |
| Running a code-based evaluator | lambda:InvokeFunction and
lambda:GetFunction for evaluators you implement
as code rather than as a prompt. |
Restricted to functions named
cloudwatchCodeEvaluator* in your own
account. |
| Storing a model-provider API key | Creating, reading, updating the value of, deleting, and tagging the Secrets Manager secret that holds a model-provider API key you supply. | Restricted to secrets whose name begins cw-omni-
that carry the cw-omni tag, in your own account.
Creating one also requires the cw-omni tag on the
request. |
| AWS Config resource inventory | The AWS Config service-linked configuration recorder, its status, and the AWS Config service-linked role, used to collect resource inventory for your account. | Same account, and the recorder's service principal must be
cloudwatch.amazonaws.com. Creating the
service-linked role is restricted to the
config.amazonaws.com path. |
| Collecting AWS events | Managing the telemetry rule that sends AWS events to your space, starting telemetry evaluation and reading its status, and listing telemetry rules. The role can also create the ObservabilityAdmin configuration recorder and its two service-linked roles. | Rule management is limited to the rule named
CloudWatchOmniEvents in your own account. The
configuration recorder is limited to
AWSConfigurationRecorderForObservabilityAdmin
and the service-linked roles to their exact names, and only when
ObservabilityAdmin makes the call (aws:CalledVia is
observabilityadmin.amazonaws.com). Starting
evaluation, reading its status, and listing rules have no
resource type, so they cannot be scoped further. |
Permissions that read across your whole account
Six permission groups grant permissions that the underlying API cannot restrict to a subset of resources, so they enumerate metadata across your entire account:
-
iam:ListRoles,iam:GetRole, andiam:ListAttachedRolePoliciesreach any IAM role in the account, including its details and the managed policies attached to it. -
iam:ListUsersreaches the name of any IAM user, not only the ingestion users. -
secretsmanager:ListSecretsreaches the name and metadata of every secret, not only the ones CloudWatch Omni creates. -
sns:ListTopicsreaches the ARN of every Amazon SNS topic in the account, so you can choose a notification target for an alert. It returns topic ARNs only (no attributes, subscriptions, or messages). -
bedrock:ListFoundationModelsandbedrock:ListInferenceProfileslist the models and inference profiles available to you. -
observabilityadmin:ListTelemetryRulesandobservabilityadmin:GetTelemetryEvaluationStatusreach the names of every telemetry rule in the account and the account's telemetry evaluation status.
None of them permits a change, and none reads the contents of anything. The
only IAM roles this policy can create are the AWS Config service-linked roles
(including the third-party role for Azure resource context), the two
ObservabilityAdmin service-linked roles, and the two roles that CloudWatch Omni
creates from CloudWatch-owned role templates (the partner integration role and the
AWS DevOps Agent investigation role). It can add an inline policy to the
partner integration role and attach the
CloudWatchOmniDevOpsAgentInvestigationServiceRolePolicy managed
policy to the investigation role. It grants no other permission to create,
modify, or delete an IAM role, user, or policy. Reading a secret value is a
separate permission limited to secrets in your own account whose name begins
with cw-omni- and that carry the cw-omni tag.
For the complete policy document, see CloudWatchOmniSpaceAccessPolicy in the AWS Managed Policy Reference.
Permissions in CloudWatchOmniAWSIntegrationPolicyV2
CloudWatchOmniAWSIntegrationPolicyV2 holds every permission in
CloudWatchOmniAWSIntegrationPolicy, plus read access to the logs,
traces, and profiles in your account's default CloudWatch Dataset. The
read covers everything stored in the default Dataset, in every
Region of your account, such as the logs and traces that your Dataset
integration forwards. These permissions read content, not only metadata. Unlike
the telemetry permissions in
CloudWatchOmniSpaceAccessPolicy, they have no
cloudwatch:HasAccessGrant condition, so access grants do not limit
them.
CloudWatchOmniAWSIntegrationPolicyV2 grants the following
permissions in addition to those in
CloudWatchOmniAWSIntegrationPolicy:
-
cloudwatch:StartTelemetryQuerySession,cloudwatch:StartTelemetryQuery,cloudwatch:GetTelemetryQueryResults,cloudwatch:StopTelemetryQuery,cloudwatch:StopTelemetryQuerySession, andcloudwatch:ListTelemetryQuerySessionsrun telemetry queries, only in your own account. -
cloudwatch:GetRecordsandcloudwatch:GetProfileRecordsread the logs, traces, and profiles in your own account'sdefaultDataset. -
kms:Decryptworks only through CloudWatch, only on keys in your account, and only for the encryption context of thedefaultDataset. CloudWatch Omni needs it only when thedefaultDataset is encrypted with a customer managed key. In that case, the key policy must also allowkms:Decryptfor the IAM role that has this policy attached, either by naming the role or by allowing IAM policies in your account to use the key. See Sample key policy.
For the complete policy document, see CloudWatchOmniAWSIntegrationPolicyV2 in the AWS Managed Policy Reference.
Permissions in CloudWatchOmniProvisioningPolicy
CloudWatchOmniProvisioningPolicy is attached to the
CloudWatchOmniProvisioningRole role, which CloudWatch Omni creates in
a member account when your organization's management account or a delegated
administrator prepares the account for a space. The administrator uses
provisioning credentials for this role to create the account's space and
Dataset integration. The policy covers setup only. It grants no access to
telemetry, alerts, dashboards, or access grants, and no permission to create,
modify, or delete an IAM role, user, or policy. The following table groups its
permissions by what they are for and gives the condition that limits each
group.
| Permission group | What it covers | How it is limited |
|---|---|---|
| Creating and listing spaces | cloudwatch:CreateSpace to create the member
account's space, and cloudwatch:ListSpaces to
check whether one already exists. |
Neither action has a resource type, so the policy cannot
scope them to a resource and has no condition on them. A space
is always created in the role's own account. The
iam:PassRole rows below limit which roles the
new space can use. |
| Reading and deleting spaces | cloudwatch:GetSpace to check the new space's
status, and cloudwatch:DeleteSpace to remove a
space if setup does not finish. |
Spaces in your own account only
(aws:ResourceAccount). |
| Managing the Dataset integration | observabilityadmin:CreateDatasetIntegration,
GetDatasetIntegration, and
DeleteDatasetIntegration, to connect the
account's CloudWatch Logs to its default CloudWatch
Dataset. |
Dataset integrations in your own account only
(aws:ResourceAccount). The policy does not
include UpdateDatasetIntegration, so it cannot
change an existing integration. |
| Listing Dataset integrations | observabilityadmin:ListDatasetIntegrations, to
check whether the account already has an integration. |
The action has no resource type, so it cannot be scoped further. |
| Reading the Dataset's encryption setting | cloudwatch:GetDataset, which returns the
Dataset's ID, its ARN, and the customer managed key that is
associated with it, if any. |
Datasets in your own account only
(aws:ResourceAccount). |
| Passing roles to the space | iam:PassRole, to give the new space the space
data access role and the online evaluation role that CloudWatch Omni
creates for the member account. |
Only roles in your own account whose names begin with
service-role/CloudWatchOmniSpaceDataAccessRole-Org
or service-role/AgentCoreEvaluationRole-Org, and
only when they are passed to CloudWatch
(iam:PassedToService is
cloudwatch.amazonaws.com). |
| Passing the Dataset integration role | iam:PassRole, to give the Dataset integration
the role that CloudWatch Omni creates for the member account. |
Only roles in your own account whose names begin with
service-role/CloudWatchOmniDatasetIntegrationRole-Org,
and only when they are passed to CloudWatch Logs
(iam:PassedToService is
logs.amazonaws.com). |
| Checking IAM Identity Center Regions | sso:ListRegions, to check that your IAM
Identity Center instance is available in the Region that the
space uses for IAM Identity Center sign-in, before the space is
created. |
Any IAM Identity Center instance
(arn:aws:sso:::instance/*). The policy has no
condition on this action. |
| Decrypting with your IAM Identity Center key | kms:Decrypt, which IAM Identity Center uses on
the caller's behalf for the Region check when your instance is
encrypted with a customer managed key. |
Three conditions together: the call must arrive through IAM
Identity Center (kms:ViaService is
sso.*.amazonaws.com), the encryption context
must name an IAM Identity Center instance, and the key must
belong to an account in your organization
(aws:ResourceOrgID). The key does not have to be
in the member account. Your key policy must also allow the
decrypt, as the following list describes. |
CloudWatch Omni also limits each set of provisioning credentials. The session can
use only the actions in this policy, even if someone adds other permissions to
the role. It also cannot act in any Region other than the one that the
credentials were requested for, except for IAM actions,
sso:ListRegions, and kms:Decrypt.
cloudwatch:ListSpaces,
observabilityadmin:ListDatasetIntegrations, and
sso:ListRegions aren't limited to specific resources. They
return metadata only, and none of them lets you make a change.
Before your organization's administrator sets up a space in a member account, check the following:
-
Service control policies. SCPs that apply to the member account also apply to the
CloudWatchOmniProvisioningRolerole. If your SCPs restrict them, allow the actions in the preceding table for the role. -
IAM Identity Center key policy. If your instance uses a customer managed key, the key policy must allow the role to use
kms:Decryptthrough IAM Identity Center. The baseline KMS key policy allows this for principals in your organization. -
IAM Identity Center Regions. Your instance must be available in the Region that the space uses for IAM Identity Center sign-in, or creating the space fails with a validation error. By default, that is the space's own Region. See Create a space in a Region where your IAM Identity Center instance is not available.
-
Tags. The policy does not include
TagResource, so don't add tags when you create the space or Dataset integration with provisioning credentials.
For the complete policy document, see CloudWatchOmniProvisioningPolicy in the AWS Managed Policy Reference.
Permissions you provide yourself
The managed policies cover using a space. They do not cover creating one, and they do not cover telemetry ingestion.
| To do this | You need |
|---|---|
| Create a domain or a space | Setup actions that neither managed policy grants. See Set up Omni. |
| Pass a role that you supply | iam:PassRole on your own calling principal for
the role you pass, including your own operator role, the domain
access role, and the evaluation execution role. |
| Send telemetry with a bearer token | Your own IAM permissions to create the ingestion user and its
credential. The user carries
CloudWatchOmniOTLPPolicy. Bearer tokens apply
to metrics, logs, and traces, with a separate API key for each.
For traces, see Setting up bearer token authentication for traces
in the X-Ray Developer Guide. See Identity and access management for CloudWatch Omni. |
| Use a customer managed key | A key policy that allows the space operator role to use the
key, and the cw-omni tag set to true
on the key. See Data encryption in CloudWatch Omni. |
| Set up a space in a member account for your organization | On the management account or delegated administrator
principal that does the setup,
cloudwatch:CreateProvisioningRolesForOrganization
and cloudwatch:GetSpaceCredentialsForOrganization.
In the member account, service control policies that allow the
actions in CloudWatchOmniProvisioningPolicy. See
Permissions in CloudWatchOmniProvisioningPolicy. |
| Set a customer managed key for Intelligence | You need cloudwatch:PutIntelligenceConfiguration.
You also need kms:Decrypt,
kms:GenerateDataKeyWithoutPlaintext,
kms:ReEncryptFrom, and
kms:ReEncryptTo on the key, under the
encryption contexts in Key management. To remove
the key, you need kms:Decrypt on the currently
configured key. The space operator role reads Intelligence data through
CloudWatchOmniSpaceAccessPolicy, which covers
only keys with the cw-omni tag set to
true. For the steps, see Set a customer managed key for Intelligence. |