Building a Drift Detection Engine with Upstash
Blog post from Upstash
This article explores the creation of a basic drift detection engine using TypeScript to manage infrastructure as code (IAC) by addressing the common challenge of drift, where infrastructure state changes from its original configuration. It utilizes Upstash for remote state management and local JSON blobs for local state management, allowing users to compute differences between remote and local states and resolve discrepancies. The article discusses scenarios where remote resources may differ from local ones due to out-of-sync branches or resource removal and provides solutions for each case. It highlights Upstash for its ease of use in remote computations and compares the approach to established drift management tools like Terraform, which offers comprehensive state management features. Additionally, it suggests that the principles of drift management can be applied in various domains beyond IAC, predicting a growing industry trend toward utilizing such concepts.