Updraft Config
Read configuration from where it lives — a versioned file in S3 — instead of threading it through template parameters.
The three types in this namespace compose:
Updraft::Config::Documentreads and parses a file, once per stack operation.Updraft::Config::Lookuppulls a single value out of it, with a default and a type assertion.Updraft::Config::ParameterSetpublishes the whole document into SSM Parameter Store for things that read configuration at runtime rather than at deploy time.
A stack usually has one document and several lookups. Reading the same file twice is legal, but it doubles the S3 calls and creates two resources that can disagree if the object changes between them.
Updraft::Config::Document
Document
Overview # Updraft::Config::Document reads one file from S3 during a stack operation, parses it, and makes the result available to the rest of the …
Updraft::Config::Lookup
Lookup
Overview # A lookup pulls one value out of a document. It is intentionally small: a path, an optional default, and a type assertion. Everything harder …
Updraft::Config::ParameterSet
ParameterSet
Overview # ParameterSet takes a whole configuration document and publishes it into SSM Parameter Store as a hierarchy. One resource owns the entire …