热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Creatingalarmfailswitherror"Aseparaterequesttoupdatethisalarmisinprogress"

Thisissuewasoriginallyopenedbyashashicorp/terraform#10689.Itwasmigratedh

This issue was originally opened by as hashicorp/terraform#10689. It was migrated here as part of the provider split. The original body of the issue is below.

Terraform Version

Terraform v0.7.7

Affected Resource(s)


  • aws_cloudwatch_metric_alarm

Terraform Configuration Files

I have three modules that create CloudWatch alarms: CPU usage, one for memory usage, and one for disk space usage. They all look more or less like this:

1
2
3
4
5
6
7
hcl

resource "aws_cloudwatch_metric_alarm" "ec2_high_cpu_utilization" {

  count = "${var.instance_count}"

  alarm_name = "ec2-high-cpu-utilization-${element(var.instance_ids, count.index)}"



  # (... all the standard alarm params ...)

}


Expected Behavior

I'm passing these modules the ID of the same EC2 Instance, so I expect three alarms to be created.

Actual Behavior

The memory usage alarm gets created, but the other two fail with this error:

1
2
3
4
* aws_cloudwatch_metric_alarm.ec2_high_disk_utilization: Creating metric alarm failed: ValidationError: A separate request to update this alarm is in progress.

    status code: 400, request id: dafd60e0-c0de-11e6-be81-87349c242d9e

* aws_cloudwatch_metric_alarm.ec2_high_cpu_utilization: Creating metric alarm failed: ValidationError: A separate request to update this alarm is in progress.

    status code: 400, request id: db0242e5-c0de-11e6-903c-8b6cee93e201

No other alarms exist in my account whatsoever. No one else is using the account at all, so there are no other API calls happening.

Steps to Reproduce



  1. 1
    terraform apply


Important Factoids

When I re-ran

1
terraform apply

after the error, the two alarms were created just fine.

该提问来源于开源项目:hashicorp/terraform-provider-aws

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.



If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!


   



推荐阅读
author-avatar
蒋筱谷_680
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有