Skip to main content

aws.cloudwatch

Supported Platform

  • aws

Description

AWS CloudWatch provides observability of AWS resources and applications

The aws.cloudwatch resource is used to assess the configuration of the AWS CloudWatch service.

Fields

IDTYPEDESCRIPTION
logGroups[]aws.cloudwatch.loggrouplist of cloudwatch log groups
alarms[]aws.cloudwatch.metricsalarmlist of cloudwatch alarms
metrics[]aws.cloudwatch.metriclist of cloudwatch metrics

Examples

Return a list of aws.cloudwatch.loggroup resources representing individual CloudWatch log groups configured across all enabled regions

aws.cloudwatch.logGroups;

Return a list of aws.cloudwatch.metric resources representing individual CloudWatch metrics configured across all enabled regions

aws.cloudwatch.metrics;

Checks that all cloudwatch alarms have at least one action enabled

aws.cloudwatch.alarms.all(
actions.length > 0 == true &&
insufficientDataActions.length > 0 ==
props.cloudwatchAlarmInsufficientDataActionRequired &&
okActions.length > 0 == props.cloudwatchAlarmOkActionRequired
);