Re:Please fix the AWS free tier before somebody gets hurt
by thayne on Wednesday May 05, 2021 @12:14AM
(#27046121)
terraform 'destroy' isn't infallible. There are certain resources that trigger the creation of other resources (for example, lambda functions will create cloudwatch log groups, and dynamodb tables create cloudwatch alarms) and when terraform destroys the resource, it doesn't necessarily clean up all the associated resources.
[ Parent
| on HN ]
Re:Please fix the AWS free tier before somebody gets hurt
by nrmitchi on Wednesday May 05, 2021 @09:49AM
(#27049755)
Terraform has it's shortcomings for sure, but I don't think it's reasonable to expect Terraform to go out and clean up second-order effects of it's resources.
I'm not doubting that the situations you describe are true, but abandoning resources like that is an AWS-lifecycle problem, not really a Terraform one.
Re:Please fix the AWS free tier before somebody gets hurt
by thayne on Wednesday May 05, 2021 @11:52AM
(#27051490)
Sure. My point is just that `terraform destroy` doesn't necessarily solve the problem at hand. And you could still end up continue paying for those second-order effects after running a terraform destroy.