liveBook · Manning

Smart script

As explained in Effective Platform Engineering

A smart script is a reusable script that contains the substantive implementation logic invoked by an automation pipeline.

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.
A screenshot of a diagram

AI-generated content may be incorrect.

Relates smart scripts to software-defined infrastructure, where infrastructure pipelines apply the same software-engineering practices as regular software pipelines. section 6.3.3

How Effective Platform Engineering covers it

How deep it goes
Explains the separation and its organizational benefits, but stops short of showing script implementation details.
Examples
Uses Git-triggered pipelines, CircleCI orbs, shell-script libraries, and local scripts as implementation examples.
What it assumes
Assumes familiarity with software delivery and infrastructure code while applying established software lifecycle practices to infrastructure pipelines.
What you can do after
Build reusable pipeline logic that standardizes delivery while keeping orchestration replaceable.
How it connects
Connects smart scripts to infrastructure as code, software pipelines, DRY, GitOps, and domains of change.

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.