Skip to main content

🧠 AWS Athena Workgroup CloudWatch Metrics are not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:32.453385032Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10A1__configPublishCloudWatchMetrics__c') == 'Disabled'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10A1__configPublishCloudWatchMetrics__c') == 'Enabled'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/athena/workgroup-cloudwatch-metrics/policy.yamlAA4F083C34E4A6BBBFAC605132D4BFBD
Open/ce/ca/aws/athena/workgroup-cloudwatch-metrics/prod.logic.yaml617C80FDC435DB3FD72EC03A0A715347
Open/ce/ca/aws/athena/workgroup-cloudwatch-metrics/test-data.json4981CF99050916A6DD4C0EC955E8787E
Open/types/CA10A1__CaAwsAthenaWorkGroup__c/object.extracts.yamlA10204D88A52AEF2DE3D9AE308BF92C7

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/athena/workgroup-cloudwatch-metrics/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/athena/workgroup-cloudwatch-metrics/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/athena/workgroup-cloudwatch-metrics/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/athena/workgroup-cloudwatch-metrics/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/athena/workgroup-cloudwatch-metrics/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A1__CaAwsAthenaWorkGroup__c"
importExtracts:
- file: "/types/CA10A1__CaAwsAthenaWorkGroup__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "CloudWatch metrics are not enabled for the Athena workgroup."
remediationMessage: "Enable CloudWatch metrics for the Athena workgroup."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__configPublishCloudWatchMetrics__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "CloudWatch metrics are enabled for the Athena workgroup."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__configPublishCloudWatchMetrics__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unable to determine the CloudWatch metrics status for the Athena workgroup."