View a markdown version of this page

Security in Observations - Amazon CloudWatch

Security in Observations

This page covers security for Observations: encryption, permissions, retention, and the data in notifications and agents.

Data encryption

CloudWatch encrypts Observations data at rest, including anomalies and observations. By default, it uses an AWS owned key. To use your own AWS KMS key, set kmsKeyArn when you call PutIntelligenceConfiguration. The key must be in the same account and Region; a multi-Region key is supported. To stop using your key, set removeKmsKey to true.

Key policy action Why
kms:GenerateDataKeyWithoutPlaintext Create data keys for new records
kms:Encrypt, kms:Decrypt Write and read encrypted data
kms:ReEncrypt* Re-encrypt data when keys rotate

People and identities that view observations, change notification rules, or receive notifications for encrypted observations also need kms:Decrypt on the key.

Important

If you disable, delete, or revoke access to the key, CloudWatch can no longer read data encrypted with it, and Observations stops working for the account.

Identity and access management

Grant only the actions each identity needs. Keep identities that only read observations separate from those that change the configuration. In the Omni web UI, viewing observations needs the CloudWatchOmniSpaceAccessPolicy managed policy, and changing settings needs the Space Admin permission level.

Action Allows
cloudwatch:ListObservations List observations
cloudwatch:ListAnomalies List anomalies
cloudwatch:GetContextGraph Read the context graph, used by the CloudWatch skills during investigations
cloudwatch:SubmitFeedback Submit feedback
cloudwatch:GetIntelligenceConfiguration Read the intelligence configuration
cloudwatch:PutIntelligenceConfiguration Change the intelligence configuration, such as turning on Observations, setting the KMS key, and changing notification rules and automatic investigations

Permissions by task

Task Actions
View observations and anomalies cloudwatch:ListObservations, cloudwatch:ListAnomalies
Turn on and configure Observations cloudwatch:GetIntelligenceConfiguration, cloudwatch:PutIntelligenceConfiguration
Configure notifications cloudwatch:ListIntegrations, cloudwatch:InvokeIntegration (Slack, PagerDuty), sns:GetTopicAttributes (SNS), kms:Decrypt if a customer managed key is set
Configure automatic investigations cloudwatch:ListIntegrations, cloudwatch:GetIntegration, cloudwatch:InvokeIntegration
Connect GitHub for change indicators cloudwatch:PutRecords on the default CloudWatch Dataset
Turn on AWS events observabilityadmin:GetTelemetryEvaluationStatus, StartTelemetryEvaluation, ListTelemetryRules, GetTelemetryRule, CreateTelemetryRule, UpdateTelemetryRule, DeleteTelemetryRule (the ...ForOrganization versions for an organization)
Investigate with a coding agent cloudwatch:ListObservations, cloudwatch:ListAnomalies, cloudwatch:GetContextGraph, cloudwatch:SubmitFeedback
Submit feedback cloudwatch:SubmitFeedback

Viewer policy

{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": [ "cloudwatch:ListObservations", "cloudwatch:ListAnomalies", "cloudwatch:GetContextGraph", "cloudwatch:SubmitFeedback" ], "Resource": "*" }] }

The Observations API actions don't support resource-level permissions, so this policy uses * for the resource.

Admin policy

{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": [ "cloudwatch:ListObservations", "cloudwatch:ListAnomalies", "cloudwatch:GetContextGraph", "cloudwatch:SubmitFeedback", "cloudwatch:GetIntelligenceConfiguration", "cloudwatch:PutIntelligenceConfiguration", "cloudwatch:ListIntegrations", "cloudwatch:GetIntegration", "cloudwatch:InvokeIntegration" ], "Resource": "*" }] }

The Observations API actions don't support resource-level permissions, so this policy uses * for the resource.

To stop an identity from submitting feedback, deny cloudwatch:SubmitFeedback.

Service names in your telemetry

CloudWatch identifies each service by the name in your telemetry, such as the OpenTelemetry service.name attribute. To group anomalies and observations by service, Observations uses service names to organize and look up your data. Service names are encrypted with an AWS owned key. Service names can appear in observations, notifications, and agent investigations.

Important

Do not include personally identifying, confidential, or sensitive information in service names.

Data in notifications and agents

Because notifications include the observation title and summary, send them only to channels, services, and topics whose members are allowed to see that information. When an agent investigates, it reads observations and telemetry with the permissions of the identity it runs as.

Feedback data

CloudWatch uses the feedback you submit to personalize Observations for your account. Feedback isn't stored as part of your observations data, and you can't list or retrieve it after you submit it. Because feedback isn't treated as customer data, don't include personally identifying, confidential, or sensitive information in it.

Retention and deletion

CloudWatch keeps each observation, along with its anomalies, for 90 days after the observation was last updated. After that, CloudWatch deletes it automatically. You don't need to take any action to remove expired data.

Retention doesn't depend on your AWS KMS key settings. If you disable or revoke access to your key, the data stays in storage until it expires, but CloudWatch can't read it.