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

Version Path
terraforming-0.18.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.17.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.16.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.15.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
aws-insight-0.14.1 lib/terraforming/template/tf/cloud_watch_alarm.erb
aws-insight-0.14.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.14.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.13.2 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.13.1 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.13.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.12.0 lib/terraforming/template/tf/cloud_watch_alarm.erb
terraforming-0.11.0 lib/terraforming/template/tf/cloud_watch_alarm.erb