#Lifecycle
2 posts
5 min read
Terraform Basics #7 Resource Lifecycle Control: Replacement Conditions, create_before_destroy, prevent_destroy
How to read from a plan which attribute changes end as an update and which ones force a resource replacement. We cover create_before_destroy, which flips the replacement order to reduce downtime, prevent_destroy, which blocks deletion of production resources, ignore_changes, which tolerates changes made outside the code, and forcing a replacement with the -replace flag.
8 min read
Angular Intermediate #4: Component Lifecycle Hooks
How an Angular component is born and torn down, and the lifecycle hooks where you can step in. ngOnInit, ngOnChanges, DestroyRef, and effect() in the Signals era.