News for hackers. Stuff that matters.
Re:Terraform 0.15 General Availability by mr_C on Wednesday April 14, 2021 @05:23PM (#26813293)
Who cares if there is a dangling dns records somewhere or an extra allocated floating ip? In practice you could just set state:absent to whatever you are trying to remove or just remove it manually, the latter is most of the time faster than dealing with state management once you have a behemoth in prod that no one wants to break.
Re:Terraform 0.15 General Availability by ncallaway on Wednesday April 14, 2021 @08:01PM (#26814660)
> Who cares if there is a dangling dns records somewhere or an extra allocated floating ip

What if instead of a dangling dns record, its 15 large EC2 instances?

Yes, you can come up with examples of trivial dangling resources, but it's just as easy for me to come up with non-trivial examples of dangling resources.

Re:Terraform 0.15 General Availability by mr_C on Thursday April 15, 2021 @04:37AM (#26817720)
I came up with trivial examples because no one forgets about non-trivial resources. In my opinion, if you decrease some instance count from 18 to 3, you'd rather waste 1 minute deleting 15 instances than dealing with all the problems a state management brings to the table.
Re:Terraform 0.15 General Availability by ncallaway on Thursday April 15, 2021 @01:53PM (#26823880)
> no one forgets about non-trivial resources

The number of articles I've read about someone who left a non-trivial number of resources running unused in AWS and were later surprised by a large bill would seem to be a counterexample to that point.

Re:Terraform 0.15 General Availability by sciurus on Wednesday April 14, 2021 @08:40PM (#26814912)
> Who cares if there is a dangling dns records somewhere

You should care. This opens you up to subdomain takeovers, which have real security implications.

https://developer.mozilla.org/en-US/docs/Web/Security/Subdom...

Re:Terraform 0.15 General Availability by erik_seaberg on Wednesday April 14, 2021 @06:32PM (#26813917)
Some cloud resources will cost money every month, forever. (I think this is an unappreciated side of the AWS business model; it’s not cost-effective to have a dev confirm that each resource can be safely decomm’d.)

There’s also a risk that your legacy environments only work because some dangling resource wasn’t cleaned up, and a new clone of the environment will fail.

Re:Terraform 0.15 General Availability by ezrast on Thursday April 15, 2021 @01:29AM (#26816471)
> In practice you could just set state:absent to whatever you are trying to remove

If you do this, or in fact anything with Ansible, be REAL careful about double-checking what your tags actually match before committing. Since it doesn't track state, anything in your cloud environment is fair game.

I was not careful once, and that was a bad week for me.

Re:Terraform 0.15 General Availability by solatic on Thursday April 15, 2021 @12:54AM (#26816317)
Part of the benefit of Terraform is the ability to set up ephemeral resources and tear everything down afterwards with "terraform destroy", which is useful for setting up one-off experiments and tests. That kind of cleanup is completely impossible with Ansible.
Re:Terraform 0.15 General Availability by mr_C on Thursday April 15, 2021 @04:41AM (#26817772)
Not true, just set state to absent and run your play again.
Re:Terraform 0.15 General Availability by m1keil on Wednesday April 14, 2021 @09:07PM (#26815077)
You pay for some of these (like dangling IP addresses not in use) and some others have a max quota (like security groups).
Re:Terraform 0.15 General Availability by matwood on Wednesday April 14, 2021 @09:44PM (#26815310)
Any dangling resources may cost money and/or open up security concerns.