When I'm trying to deploy my code, I’m getting this error:
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
When I inspect the stack, it seems empty, so I’m not able to delete the stack? Could anyone help with this, thanks in advance!
Based on the comments.
The issue was caused by existing record set in Route53. The solution was to delete the record in Route53 console and use CloudFormation to re-create it.