Immutable infrastructure with HashiCorp’s Packer
Imagine you are the author of a book and you need to make changes to an existing edition. When you want to make changes, such as improving the content or fixing the issues and ensuring the book is up to date, you don’t edit the existing book. Instead, you create a new edition with the desired updates while keeping the existing editions intact, like the new edition of this book. This concept aligns with immutable infrastructure.
In IT and systems management, immutable infrastructure is a strategy where, instead of making changes to existing servers or Virtual Machines (VMs), you generate entirely new instances with the desired configuration. These new instances replace the old ones instead of modifying them, like creating a new book edition when you want to incorporate changes.
Here’s how it works:
- Building from scratch: When you need to update a part of your infrastructure, you avoid making direct changes...