An input variable is part of a module’s interface.
Its declaration can specify a type, a default and a description. Resource expressions read the value through var followed by the variable name. The declaration does not create a remote object, and declaring an input does not automatically connect it to a resource. You must reference it where the resource needs that value. Keep the resource address stable while changing capacity. Watch the difference between a missing required value and a default: a default supplies a value only when the caller does not provide one.
The resource reads the variable through var.capacity.