Skip to main content

aws.cloudwatch

Supported platform

  • aws

Description

Amazon CloudWatch

Use the aws.cloudwatch resource 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

Check 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
)