Sha256: df4151e9550b121cb05138d1678595000a2286f1631dd36840326fd8f8989b56
Contents?: true
Size: 1.23 KB
Versions: 12
Compression:
Stored size: 1.23 KB
Contents
<% alarms.each do |alarm| -%> resource "aws_cloudwatch_metric_alarm" "<%= normalize_module_name(alarm.alarm_name) %>" { alarm_name = "<%= alarm.alarm_name %>" comparison_operator = "<%= alarm.comparison_operator %>" evaluation_periods = "<%= alarm.evaluation_periods %>" metric_name = "<%= alarm.metric_name %>" namespace = "<%= alarm.namespace %>" period = "<%= alarm.period %>" statistic = "<%= alarm.statistic %>" threshold = "<%= alarm.threshold %>" alarm_description = "<%= alarm.alarm_description %>" <%- unless alarm.ok_actions.empty? -%> ok_actions = <%= alarm.ok_actions %> <%- end -%> <%- unless alarm.alarm_actions.empty? -%> alarm_actions = <%= alarm.alarm_actions %> <%- end -%> <%- unless alarm.actions_enabled -%> actions_enabled = <%= alarm.actions_enabled %> <%- end -%> <%- unless alarm.dimensions.empty? -%> dimensions { <% alarm.dimensions.each do |dimension| -%> <%= dimension.name %> = "<%= dimension.value %>" <% end -%> } <%- end -%> <%- unless alarm.insufficient_data_actions.empty? -%> insufficient_data_actions = <%= alarm.insufficient_data_actions %> <%- end -%> } <%- end -%>
Version data entries
12 entries across 12 versions & 2 rubygems