A local value names an expression inside its own module. Use local followed by the name when another expression needs the result.
Unlike an input variable, a local does not accept a value from the caller. It is useful for derived names, shared tags and a capacity calculation that several resources use. Locals can refer to variables and to other locals when those references do not form a cycle. Keep one source of the calculation. Copying the result into several resources makes later edits harder because those copies can disagree without producing a syntax error.
local.capacity reads the named expression.