liveBook · Manning

Module

As explained in Effective Platform Engineering

A Terraform module is a reusable package of Terraform configuration that groups resources and exposes configurable inputs and outputs.

A Terraform module is a reusable configuration package that accepts parameters and provisions resources. Its creator makes opinionated choices about which resources and configuration to provide. section 6.3.5

Integration tests can apply a module in a dedicated cloud account or project to verify that it provisions the intended resources and configuration. Tests can also check story acceptance criteria, such as required subnet tags. section 6.3.5

VPC subnet tags

A VPC module can configure subnet tags for managed cluster nodes, including a naming convention and Karpenter discovery. An integration test can verify that the required tag values match the convention. section 6.3.5

How Effective Platform Engineering covers it

How deep it goes
Explains module testing through dedicated-account applies and configuration checks, but does not detail module construction.
Examples
Uses an AWS VPC module to configure managed-node subnet tags for Karpenter discovery and naming conventions.
What you can do after
Evaluate a reusable module by applying it in a dedicated cloud account or project and checking its resources and configuration.
How it connects
Connects Terraform modules with integration testing, test-driven development, and infrastructure configuration.

Also explained in

Compare how 35 books explain module →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Platform Engineering. The section links point to the parts of the book it draws on.