<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2_metric_alarm</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.3.2.0"><pre class="notranslate"><code class="notranslate">2.3.2.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Amazon CloudWatch has added a setting to define how an alarm handles a missing data point (<a href="https://aws.amazon.com/about-aws/whats-new/2017/03/cloudwatch-alarms-releases-two-new-alarm-configuration-settings/" rel="nofollow">announcement</a>, <a href="http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data" rel="nofollow">description</a>) using:</p>
<ul dir="auto">
<li>"Treat missing data as:" in the <a href="http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ConsoleAlarms.html" rel="nofollow">UI</a></li>
<li><code class="notranslate">--treat-missing-data</code> option in the <a href="http://docs.aws.amazon.com/cli/latest/reference/cloudwatch/put-metric-alarm.html#synopsis" rel="nofollow">AWS CLI</a></li>
<li><code class="notranslate">TreatMissingData</code> request parameter in the <a href="http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricAlarm.html" rel="nofollow">API</a></li>
</ul>
<p dir="auto">Ansible needs a <code class="notranslate">treat_missing_data</code> option in its ec2_metric_alarm module with possible values <code class="notranslate">breaching</code> (bad), <code class="notranslate">notBreaching</code> (good), <code class="notranslate">ignore</code>, and <code class="notranslate">missing</code>.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- ec2_metric_alarm:
    ...
    treat_missing_data: notBreaching
    ..."><pre class="notranslate">- <span class="pl-ent">ec2_metric_alarm</span>:
    <span class="pl-s">...</span>
    <span class="pl-ent">treat_missing_data</span>: <span class="pl-s">notBreaching</span>
    <span class="pl-s">...</span></pre></div>
<p dir="auto">Also, Terraform has the <a href="https://www.terraform.io/docs/providers/aws/r/cloudwatch_metric_alarm.html#treat_missing_data" rel="nofollow">treat_missing_data</a> argument for its aws_cloudwatch_metric_alarm provider resource.</p>
<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">ec2_metric_alarm</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0
  config file = /Users/kmcnally/ansible.cfg
  configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0
  config file = /Users/kmcnally/ansible.cfg
  configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
nocows = 1
host_key_checking = False
retry_files_enabled = False

[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes
pipelining=True
host_key_checking = False"><pre class="notranslate"><code class="notranslate">[defaults]
nocows = 1
host_key_checking = False
retry_files_enabled = False

[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes
pipelining=True
host_key_checking = False
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">MacOS Sierra 10.12.3</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">When creating a cloudwatch alarm using the aws cli you get the option to set --treat-missing-data to breaching | notBreaching | ignore | missing.<br>
<a href="http://docs.aws.amazon.com/cli/latest/reference/cloudwatch/put-metric-alarm.html" rel="nofollow">http://docs.aws.amazon.com/cli/latest/reference/cloudwatch/put-metric-alarm.html</a><br>
It looks like this setting is not available in the module. So when creating an alarm using this module the setting will always be missing, which is default. Can you confirm if this is right or am I missing something?</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>


<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div>