A smart script is reusable, versioned code that contains the substantive implementation logic invoked by an automation pipeline. The pipeline itself stays dumb: it expresses ordering while scripts handle pipeline-specific behavior. section 6.3.3
Separating orchestration from implementation provides two practical benefits:
- Shared scripts keep standardized pipelines DRY across teams and help developers satisfy nonfunctional compliance checks. section 6.3.3
- Dumb pipeline definitions preserve the option to replace the pipeline tool without rewriting substantive implementation logic. section 6.3.3
A namespace-level pipeline
A Git event triggers a pipeline whose steps only establish order; each step calls versioned external pipeline code, such as CircleCI orbs or shell-script libraries, or local scripts for logic unique to that pipeline. section 6.3.3
Figure 6.10 Well-architected Infrastructure-as-code pipelines are no different from well-architected regular software pipelines. This is why we prefer the term “software-defined infrastructure” to differentiate between simply using an infrastructure-as-code (IaC) framework like Terraform and the software engineering practices that are a part of sustainable, high-quality software developer lifecycle management of an engineering platform product.
Relates smart scripts to software-defined infrastructure, where infrastructure pipelines apply the same software-engineering practices as regular software pipelines. section 6.3.3
