首页 > 解决方案 > CloudFormation 抱怨 changeSet [InvalidChangeBatch]

问题描述

当我尝试部署我的代码时,我收到了这个错误:

module.rest_api.aws_route53_record.xxx: 
[ERR]: Error building changeset: InvalidChangeBatch: [Tried to create resource record set [name=‘MYNAME’, type=‘MYTYPE’] but it already exists]
status code: 400, request id: XXXXXXXXXX

当我检查堆栈时,它似乎是空的,所以我无法删除堆栈?任何人都可以帮助解决这个问题,在此先感谢!

标签: amazon-web-servicesamazon-cloudformationamazon-route53

解决方案


根据评论。

该问题是由Route53 中的现有记录集引起的。解决方案是删除 Route53 控制台中的记录并使用 CloudFormation 重新创建它。


推荐阅读