Skip to content

Outputs

Outputs are named objects.

outputs:
- name: url
- name: token
sensitive: true
- name: optional_value
required: false
FieldRequiredDefaultDescription
nameYesNoneOutput name. Must not be _meta or start with _meta..
requiredNotrueWhether apply fails if the output is missing.
sensitiveNofalseSensitive outputs are available during the same up, but are not persisted in state.
typeNoEmptyReserved for future output typing.

Reference an output:

env:
BASE_URL: "${api.outputs.url}"

Adapter-generated operational outputs live under the reserved _meta namespace and do not need to be declared. For example, Docker Compose exposes published ports as:

env:
BASE_URL: "http://localhost:${web.outputs._meta.ports.services.api.80}"