amazon-web-services - 当我的 Cloud Formation 堆栈中缺少 Route53 时如何恢复?

标签 amazon-web-services aws-cloudformation aws-cdk

这种事已经发生在我身上好几次了。一个错误导致 Route53 中的条目(本例中为 CNAME)从 Cloud Formation 堆栈(由 CDK 驱动)删除。我该如何重新创建该记录?重新部署堆栈似乎不起作用,因为 Cloud Formation 认为它已部署。

我认为这本质上就是所谓的漂移?

最佳答案

在 CF 中修复这个问题需要两个步骤,伙计。

  1. 从 CloudFormation 堆栈中删除 CNAME 资源,然后应用它。这会通知 CloudFormation 从堆栈的托管资源中删除该资源。
  2. 将 CNAME 资源再次粘贴到同一 CloudFormation 堆栈,然后应用它。这将强制 CloudFormation 将其添加到其资源列表并配置 Route53 CNAME。

关于amazon-web-services - 当我的 Cloud Formation 堆栈中缺少 Route53 时如何恢复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70963613/

相关文章:

amazon-web-services - AWS Kubernetes 暴露服务超时错误

amazon-web-services - 保护 AWS JS SDK Api 调用

node.js - 如何使用 kafka-node 将 AWS Bitnami Certified Kafka AMI 与 Elastic Beanstalk nodejs 环境连接起来

amazon-web-services - CDK 将预先存在的存储桶用于 CI CD Pipeline for Artifacts

amazon-web-services - 如何使用lambda将s3中的最新代码部署到lambda函数

amazon-web-services - AWS SSM : Pass tag-name instead of Instance-ID

amazon-ec2 - Cloudformation 模板 - 如何确保 EC2 实例启动后特定服务正在运行

aws-cloudformation - 如何在 cdk 部署中使用 cloudformation wait 命令?

aws-cloudformation - AWS CDK参数错误: Value of property Parameters must be an object with String (or simple type) properties

amazon-web-services - AWS CDK 中堆栈和构造之间的区别