# TargetTrackingScaling Cloudwatch alarm missing data treatment in aws

**URL:** <https://discuss.hashicorp.com/t/targettrackingscaling-cloudwatch-alarm-missing-data-treatment-in-aws/2048>\
**Category:** Terraform\
**Created:** [July 18, 2019, 1:19am UTC](https://discuss.hashicorp.com/t/targettrackingscaling-cloudwatch-alarm-missing-data-treatment-in-aws/2048 "2019-07-18T01:19:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mguao](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mguao/32/1578_2.png) [@mguao](https://discuss.hashicorp.com/u/mguao)\
**Post date:** [July 18, 2019, 1:19am UTC](https://discuss.hashicorp.com/t/targettrackingscaling-cloudwatch-alarm-missing-data-treatment-in-aws/2048/1 "2019-07-18T01:19:27Z")

</div>

I cannot modify the automatically created Cloudwatch alarms for TargetTrackingScaling policy type in AWS via terraform. I created a resource below.

```auto
resource "aws_autoscaling_policy" "my_autoscale_policy" {
name = "my-auto-scale-policy"
autoscaling_group_name = "${aws_autoscaling_group.my_autoscaling.name}"
policy_type = "TargetTrackingScaling"
target_tracking_configuration {
customized_metric_specification {
    metric_dimension {
        name = "QueueName"
        value = "${aws_sqs_queue.my_sqs.name}"
}

  metric_name = "ApproximateNumberOfMessagesVisible"
  namespace = "AWS/SQS"
  statistic = "Maximum"
}

target_value = "5" 
}
}

```

This code works perfectly. It will automatically create 2 alarms (High and Low). However, I noticed that the alarms (specifically the “Low” alarms will be treated as “alarm” because it doesn’t have a data yet (missing data). How can I update “missing data treatment” and have it ‘none breaching’ via terraform?
