Stop swallowing errors from DescribeAlarms
This caused alarms to be created repeatedly if Terraform is running without DescribeAlarms permission.
This commit is contained in:
parent
fe540b408f
commit
0b9fb1d8f8
|
@ -259,7 +259,7 @@ func getAwsCloudWatchMetricAlarm(d *schema.ResourceData, meta interface{}) (*clo
|
|||
|
||||
resp, err := conn.DescribeAlarms(¶ms)
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Find it and return it
|
||||
|
|
Loading…
Reference in New Issue