I created a subnet with name private-subnet
in AWS using terraform with Terraform cloud as backend state store.
Then I changed the name of subnet to private-subnet1
at AWS using AWS console (UI).
Also, I make the same changes on my terraform module too.
But now, when I try to deploy other modules, I am getting an error:
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
I tried destroying the whole deployment, but that also not worked. Any suggestions?