News for hackers. Stuff that matters.
Re:Terraform should have remained stateless by usrn on Saturday May 28, 2022 @06:50AM (#31539247)
>- The risk of losing state information by a resource being deleted outside of Terraform is greater

This isn't losing state information though! That is the state. If state information were kept outside this it would now be wrong which means terraform *would do the wrong thing.

Re:Terraform should have remained stateless by kkdaemas on Saturday May 28, 2022 @08:10AM (#31539681)
No because the metadata on the deleted resource is now lost.

With the information being stored outside the resource, we know that it was deleted and the metadata about it.

Re:Terraform should have remained stateless by usrn on Saturday May 28, 2022 @08:59AM (#31539991)
That's not state information though, that's metadata.
Re:Terraform should have remained stateless by pharmakom on Saturday May 28, 2022 @09:31AM (#31540195)
If some state information is stored using metadata then we need that metadata to know the total state. The contents of TF state is more than what can be read from the provider APIs often.
Re:Terraform should have remained stateless by mountainriver on Saturday May 28, 2022 @01:32PM (#31542138)
Yeah but the extra stuff they add is a trade off and lots of people would rather not have two sources of truth to have it
Re:Terraform should have remained stateless by rad_gruchalski on Saturday May 28, 2022 @02:50PM (#31542697)
Most of the people I know who use Terraform use Terraform as the source of truth.
Re:Terraform should have remained stateless by usrn on Saturday May 28, 2022 @03:31PM (#31543026)
You can wish things are a certain way but that doesn't change reality no matter how nice that would be.
Re:Terraform should have remained stateless by rad_gruchalski on Saturday May 28, 2022 @04:16PM (#31543404)
Seen this many times. People using a tool in an unintended manner and then bashing the tool.
Re:Terraform should have remained stateless by mountainriver on Tuesday May 31, 2022 @08:39AM (#31568822)
Huh so you access your infra through terraform?
Re:Terraform should have remained stateless by tedivm on Tuesday May 31, 2022 @09:46AM (#31569423)
This conversation is embarrassing for both of you.
Re:Terraform should have remained stateless by rad_gruchalski on Wednesday June 01, 2022 @12:39PM (#31584472)
Tell me more please. There’s always something new to learn.
Re:Terraform should have remained stateless by mountainriver on Tuesday May 31, 2022 @12:31PM (#31571547)
its super embarrassing if you thing TF is the source of truth when the cloud provider clearly is
Re:Terraform should have remained stateless by rad_gruchalski on Wednesday June 01, 2022 @12:48PM (#31584596)
My infrastructure drifts from my source of truth.
Re:Terraform should have remained stateless by rad_gruchalski on Wednesday June 01, 2022 @12:41PM (#31584492)
Through an API, really.