Updraft ExtensionsPreview

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:

  1. Updraft::Config::Document reads and parses a file, once per stack operation.
  2. Updraft::Config::Lookup pulls a single value out of it, with a default and a type assertion.
  3. Updraft::Config::ParameterSet publishes 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.