Amazon CloudWatch permissions reference
The following table
lists each CloudWatch API operation and the corresponding actions for which you can grant
permissions to perform the action. You specify the actions in the policy's
Action
field, and you specify a wildcard character (*) as the resource
value in the policy's Resource
field.
You can use Amazon-wide condition keys in your CloudWatch policies to express conditions. For a complete list of Amazon-wide keys, see Amazon Global and IAM Condition Context Keys in the IAM User Guide.
Note
To specify an action, use the cloudwatch:
prefix followed by the API operation
name. For example: cloudwatch:GetMetricData
, cloudwatch:ListMetrics
, or
cloudwatch:*
(for all CloudWatch actions).
Topics
- CloudWatch API operations and required permissions for actions
- CloudWatch Contributor Insights API operations and required permissions for actions
- CloudWatch Events API operations and required permissions for actions
- CloudWatch Logs API operations and required permissions for actions
- Amazon EC2 API operations and required permissions for actions
- Amazon EC2 Auto Scaling API operations and required permissions for actions
CloudWatch API operations and required permissions for actions
CloudWatch API operations | Required permissions (API actions) |
---|---|
Required to delete an alarm. |
|
Required to delete a dashboard. |
|
Required to delete a metric stream. |
|
Required to view alarm history. To retrieve information about composite alarms, your
|
|
Required to retrieve information about alarms. To retrieve information about composite alarms, your |
|
Required to view alarms for a metric. |
|
Required to disable an alarm action. |
|
Required to enable an alarm action. |
|
Required to display data about existing dashboards. |
|
Required to graph metric data in the CloudWatch console, to retrieve large batches of metric data, and perform metric math on that data. |
|
Required to view graphs in other parts of the CloudWatch console and in dashboard widgets. |
|
Required to view information about a metric stream. |
|
Required to retrieve a snapshot graph of one or more CloudWatch metrics as a bitmap image. |
|
Required to view the list of CloudWatch dashboards in your account. |
|
Required to view or search metric names within the CloudWatch console and in the CLI. Required to select metrics on dashboard widgets. |
|
Required to view or search the list of metric streams in the account. |
|
Required to create a composite alarm. To create a composite alarm, your |
|
Required to create a dashboard or update an existing dashboard. |
|
Required to create or update an alarm. |
|
Required to create metrics. |
|
Required to create a metric stream. |
|
Required to manually set an alarm's state. |
|
Required to start the flow of metrics in a metric stream. |
|
Required to temporarily stop the flow of metrics in a metric stream. |
|
Required to add or update tags on CloudWatch resources such as alarms and Contributor Insights rules. |
|
Required to remove tags from CloudWatch resources . |
CloudWatch Contributor Insights API operations and required permissions for actions
Important
When you grant a user the cloudwatch:PutInsightRule
permission,
by default that user can create a rule that
evaluates any log group in CloudWatch Logs. You can add IAM policy conditions that limit
these permissions
for a user to include and exclude specific log groups. For more information,
see Using condition keys to limit Contributor
Insights users' access to log groups.
CloudWatch Contributor Insights API operations | Required permissions (API actions) |
---|---|
Required to delete Contributor Insights rules. |
|
Required to view the Contributor Insights rules in your account. |
|
Required to enable Contributor Insights rules. |
|
Required to retrieve time series data and other statistics collectd by Contributor Insights rules. |
|
Required to create Contributor Insights rules. See the Important note at the beginning of this table. |
CloudWatch Events API operations and required permissions for actions
CloudWatch Events API operations | Required permissions (API actions) |
---|---|
Required to delete a rule. |
|
Required to list the details about a rule. |
|
Required to disable a rule. |
|
Required to enable a rule. |
|
Required to list rules associated with a target. |
|
Required to list all rules in your account. |
|
Required to list all targets associated with a rule. |
|
Required to add custom events that can be matched to rules. |
|
Required to create or update a rule. |
|
Required to add targets to a rule. |
|
Required to remove a target from a rule. |
|
Required to test an event pattern against a given event. |
CloudWatch Logs API operations and required permissions for actions
CloudWatch Logs API operations | Required permissions (API actions) |
---|---|
Required to cancel a pending or running export task. |
|
Required to export data from a log group to an Amazon S3 bucket. |
|
Required to create a new log group. |
|
Required to create a new log stream in a log group. |
|
Required to delete a log destination and disables any subscription filters to it. |
|
Required to delete a log group and any associated archived log events. |
|
Required to delete a log stream and any associated archived log events. |
|
Required to delete a metric filter associated with a log group. |
|
Required to delete a saved query definition in CloudWatch Logs Insights. |
|
Required to delete a CloudWatch Logs resource policy. |
|
Required to delete a log group's retention policy. |
|
Required to delete the subscription filter associated with a log group. |
|
Required to view all destinations associated with the account. |
|
Required to view all export tasks associated with the account. |
|
Required to view all log groups associated with the account. |
|
Required to view all log streams associated with a log group. |
|
Required to view all metrics associated with a log group. |
|
Required to see the list of saved query definitions in CloudWatch Logs Insights. |
|
Required to see the list of CloudWatch Logs Insights queries that are scheduled, executing, or have recently excecuted. |
|
Required to view a list of CloudWatch Logs resource policies. |
|
Required to view all subscription filters associated with a log group. |
|
Required to sort log events by log group filter pattern. |
|
Required to retrieve log events from a log stream. |
|
Required to retrieve the list of fields that are included in the log events in a log group. |
|
Required to retrieve the details from a single log event. |
|
Required to retrieve the results of CloudWatch Logs Insights queries. |
|
Required to list the tags associated with a log group. |
|
Required to create or update a destination log stream (such as an Kinesis stream). |
|
Required to create or update an access policy associated with an existing log destination. |
|
Required to upload a batch of log events to a log stream. |
|
Required to create or update a metric filter and associate it with a log group. |
|
Required to save a query in CloudWatch Logs Insights. |
|
Required to create a CloudWatch Logs resource policy. |
|
Required to set the number of days to keep log events (retention) in a log group. |
|
Required to create or update a subscription filter and associate it with a log group. |
|
Required to start CloudWatch Logs Insights queries. |
|
Required to stop a CloudWatch Logs Insights query that is in progress. |
|
Required to add or update log group tags. |
|
Required to test a filter pattern against a sampling of log event messages. |
Amazon EC2 API operations and required permissions for actions
Amazon EC2 API operations | Required permissions (API actions) |
---|---|
Required to view EC2 instance status details. |
|
Required to view EC2 instance details. |
|
Required to reboot an EC2 instance. |
|
Required to stop an EC2 instance. |
|
Required to terminate an EC2 instance. |
Amazon EC2 Auto Scaling API operations and required permissions for actions
Amazon EC2 Auto Scaling API operations | Required permissions (API actions) |
---|---|
Scaling |
Required to scale an Auto Scaling group. |
Trigger |
Required to trigger an Auto Scaling action. |