β Repository β π Compliance Engine β π CloudAware β π AWS β π CloudWatch
π‘οΈ AWS CloudWatch Metric Alarm does not have any actions configuredπ’
- Contextual name: π‘οΈ Metric Alarm does not have any actions configuredπ’
- ID:
/ce/ca/aws/cloudwatch/metric-alarm-without-actions
- Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY
- Policy Categories:
RELIABILITY
,SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- AWS Security Hub: [CloudWatch.17] CloudWatch alarm actions should be activated
Descriptionβ
Descriptionβ
This policy identifies AWS CloudWatch Metric Alarms that do not have at least one action configured for any of the following states:
ALARM
,INSUFFICIENT_DATA
, orOK
.AWS CloudWatch alarms monitor a single metric over a defined time period and can trigger one or more actions based on the metricβs value relative to a specified threshold. Actions typically include sending notifications (for example, to an Amazon SNS topic) or initiating automated responses (such as an EC2 Auto Scaling policy).
Rationaleβ
Alarms without configured actions are ineffective because they do not generate notifications or trigger automated responses when their state changes. This lack of response increases the risk of critical performance issues, security events, or system failures going undetected, potentially resulting in prolonged downtime or security breaches.
Impactβ
Without actions, there is an increased risk of critical performance issues, security events, or system failures going undetected, potentially resulting in prolonged downtime or security breaches.
... see more
Remediationβ
Remediationβ
To remediate this issue, you must configure at least one action for your CloudWatch alarm. The most common action is to send a notification to an Amazon SNS topic.
Configure an Actionβ
From Command Lineβ
Each action is specified as an Amazon Resource Name (ARN).
aws cloudwatch put-metric-alarm
--alarm-name cpu-mon
--alarm-description "{{alarm-description}}"
--actions-enabled
[--ok-actions {{list-of-actions}}]
[--alarm-actions {{list-of-actions}}]
[--insufficient-data-actions {{list-of-actions}}]
--evaluation-periods 2
--comparison-operator {{GreaterThanOrEqualToThreshold | LessThanLowerOrGreaterThanUpperThreshold }}Valid Actionsβ
EC2 actionsβ
arn:aws:automate:*region* :ec2:stop
arn:aws:automate:*region* :ec2:terminate
arn:aws:automate:*region* :ec2:reboot
arn:aws:automate:*region* :ec2:recover
arn:aws:swf:*region* :*account-id* :action/actions/AWS_EC2.InstanceId.Stop/1.0
arn:aws:swf:*region* :*account-id* :action/actions/AWS_EC2.InstanceId.Terminate/1.0
... see more