OK, so here's a scenario:
1. you write code, provisioned infrastructure (example:
vpc.tf,
rds.tf,
app1.tf) with ELB, ASG, etc.
2. someone adds
app2.tf and does:
$ tf destroy
because something went wrong and wipes out whole infrastructure.. I'm looking for locks/something that will prevent this from happening by:
- allow users to terminate resources only that they created
- deny termination of newly created resources at all times.
This is what I'm looking to prevent from happening.