Skip to main content

⭐ Repository β†’ πŸ“ Compliance Engine β†’ πŸ“ CloudAware β†’ πŸ“ AWS β†’ πŸ“ CloudWatch β†’ πŸ›‘οΈ Metric Alarm does not have any actions configured🟒

🧠 AWS CloudWatch Metric Alarm does not have any actions configured - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-08T17:39:06.832548645Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ not(extract('CA10__actionsEnabled__c'))βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__alarmActions__c').isEmpty() && extract('CA10__insufficientDataActions__c').isEmpty() && extract('CA10__okActions__c').isEmpty()βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/cloudwatch/metric-alarm-without-actions/policy.yaml49FAF65A9CD918CB97C1E0D193BEEEC1
Open/ce/ca/aws/cloudwatch/metric-alarm-without-actions/prod.logic.yaml5F5C5F84269BB31151422BB7B5444A6A
Open/ce/ca/aws/cloudwatch/metric-alarm-without-actions/test-data.json0C17AE7232E0AB7ED9391E156FFF6C47
Open/types/CA10__CaAwsCloudWatchMetricAlarm__c/object.extracts.yaml1CA53D6631ECBBFFDE69117572DA2544

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/cloudwatch/metric-alarm-without-actions/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/cloudwatch/metric-alarm-without-actions/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/cloudwatch/metric-alarm-without-actions/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/cloudwatch/metric-alarm-without-actions/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/cloudwatch/metric-alarm-without-actions/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsCloudWatchMetricAlarm__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsCloudWatchMetricAlarm__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The CloudWatch alarm actions are disabled."
remediationMessage: "Consider enabling the alarm actions if the alarm is still required."
check:
NOT:
arg:
EXTRACT: "CA10__actionsEnabled__c" # actionsEnabled != true
- status: "INCOMPLIANT"
currentStateMessage: "The CloudWatch alarm does not have any actions configured\
\ for the ALARM, INSUFFICIENT_DATA, or OK states."
remediationMessage: "Configure at least one action for the ALARM, INSUFFICIENT_DATA,\
\ or OK state to ensure notifications or automated responses are triggered\
\ when the alarm changes state."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__alarmActions__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__insufficientDataActions__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__okActions__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The CloudWatch alarm has at least one action configured."