diff --git a/rule.go b/rule.go index b7e95d2..d721f9b 100644 --- a/rule.go +++ b/rule.go @@ -302,6 +302,9 @@ func (r *Rule) diff(ctx context.Context, cw *cloudwatchevents.CloudWatchEvents) ruleList, err := cw.ListRulesWithContext(ctx, &cloudwatchevents.ListRulesInput{ NamePrefix: rule, }) + if err != nil { + return "", "", err + } var ( roleArnPrefix = fmt.Sprintf("arn:aws:iam::%s:role/", c.AccountID)