Sha256: c12e070766b0b2f0a6e087c224034172dbca852c7b5c00d08d9e997189866268
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
<% alarms.each do |alarm| -%> resource "aws_cloudwatch_metric_alarm" "<%= alarm.normalized_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.unit.nil? || alarm.unit == "" -%> unit = "<%= alarm.unit %>" <%- 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terraform-exporter-0.0.4 | lib/terraformer/template/tf/cloud_watch_alarm.erb |