Build a list of resources with count, remove one from the middle, and every resource after it shifts to a new index, because count keys state by position. When the…
State Management
3 articles tagged “State Management”.
Rename a resource, move it into a module, or split a monolith and Terraform's default reaction is to destroy and recreate — on production. The moved, removed, and import…
Terraform workspaces look like the obvious way to manage dev, staging, and prod from one codebase — and that is exactly the trap. One backend, invisible state switching,…