Skip to content

Commit

Permalink
add possible reasons for error for alarm override validation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Guslington committed May 26, 2022
1 parent eefc62b commit 1fc5775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cfnguardian/compile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def validate_resources()
when 'Alarm'
%w(metric_name namespace).each do |property|
if resource.send(property).nil?
errors << "Alarm #{resource.name} for resource #{resource.resource_id} has nil value for property #{property.to_camelcase}"
errors << "Alarm #{resource.name} for resource #{resource.resource_id} has nil value for property #{property.to_camelcase}. This could be due to incorrect spelling of a default alarm name or missing property #{property.to_camelcase} on a new alarm."
end
end
when 'Check'
Expand Down

0 comments on commit 1fc5775

Please sign in to comment.