Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

memo

A stateful resource that stores an immutable value. Once created, the memo retains its initial value regardless of changes to the initialize_with input.

This is useful for preserving configuration values that should remain constant throughout a deployment's lifetime, such as the NixOS system.stateVersion, or perhaps an initial database schema version (in case you need it for conditional hotfixes later), or other deployment-specific constants that should not change after initial creation.

State Required: Yes

Inputs

inputs.initialize_with

The initial value of the memo. The memo is not updated if this value changes in later versions of your deployment expression.

Type: anything

Declared by:

Outputs

outputs.value

The value of the memo, which is the value of the initialize_with input when the memo was created.

Type: anything

Declared by: