【发布时间】:2021-04-07 14:09:10
【问题描述】:
我使用 terraform 在 AWS 中创建了一个名为 private-subnet 的子网,并将 Terraform 云作为后端状态存储。
然后我在 AWS 使用 AWS 控制台 (UI) 将子网的名称更改为 private-subnet1。
另外,我也对我的 terraform 模块进行了相同的更改。
但是现在,当我尝试部署其他模块时,出现错误:
Error: error deleting subnet (subnet-xxxxxxxxxxxxxxxxx): timeout while waiting for state to become 'destroyed' (last state: 'pending', timeout: 20m0s)
Error: error creating subnet: InvalidSubnet.Conflict: The CIDR '192.168.1.0/24' conflicts with another subnet
我尝试破坏整个部署,但也没有奏效。有什么建议吗?
【问题讨论】:
标签: amazon-web-services terraform