Skip to content

Commit

Permalink
fix(cloudwatch-alarm): query for both composite and metric alarms
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Dec 13, 2024
1 parent ff99ac3 commit f01fa7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/cloudwatch-alarms.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package resources
import (
"context"

"github.com/gotidy/ptr"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudwatch"

Expand Down Expand Up @@ -33,6 +35,10 @@ func (l *CloudWatchAlarmLister) List(_ context.Context, o interface{}) ([]resour
resources := make([]resource.Resource, 0)

params := &cloudwatch.DescribeAlarmsInput{
AlarmTypes: []*string{
ptr.String(cloudwatch.AlarmTypeCompositeAlarm),
ptr.String(cloudwatch.AlarmTypeMetricAlarm),
},
MaxRecords: aws.Int64(100),
}

Expand Down

0 comments on commit f01fa7c

Please sign in to comment.