Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "provider/aws: Fix dependency violation with subnets and secur…
…ity groups" This reverts commit 3d80057. Rationale: There is no guarantee that waiting will resolve the DependencyViolation. It's possible, perhaps likely, that the thing preventing the subnet deletion was created by some other means -- by another user, by a dynamic application, in another manifest, or that it was created by this manifest but for some other reason failed to be deleted. In these cases, the retry behavior makes the user wait 5 minutes only to receive the misleading error: Error deleting subnet: timeout while waiting for state to become 'destroyed' The obvious response to this is to try again, which yields another 5 minutes of waiting. The previous behavior was to fail quickly with an error which exactly described the problem. While this is mildly annoying, it's at least apparent what is happening. The situation the original commit was intended to address could be more elegantly addressed by: - running Terraform a second time, or - explicitly declaring dependencies via the `depends_on` attribute.
- Loading branch information