3 Patterns for infrastructure modules

This chapter covers

  • Grouping infrastructure resources into composable modules based on function
  • Building infrastructure modules with software development design patterns
  • Applying module patterns to common infrastructure use cases

In the preceding chapter, I covered the fundamental practices for infrastructure as code. Even though I knew the fundamental practices, my first Python automation script grouped code into one file with messy functions. Years later, I learned software design patterns. They provided a standard set of patterns that made it easier for me to change the script and hand it over to another teammate for maintenance.

In the following two chapters, I show how to apply design patterns to IaC ...

Get Infrastructure as Code, Patterns and Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.