porter.yaml file. Currently only in-cluster datastores are supported for now.
Requires Porter CLI v0.68.30 or later. Check your version with porter version, and see the CLI installation guide to install or upgrade.
--wait holds the apply until each datastore is fully available (up to 10 minutes) before any apps deploy. This guarantees that the datastores’ environment groups and credentials exist by the time the apps start. The flag also waits for each app’s rollout to succeed before exiting.
Without --wait, the CLI proceeds about 10 seconds after creating a datastore. Apps may then fail their first deploy with a missing-environment-group error until the datastore finishes provisioning.
When a datastore is provisioned, Porter automatically creates an environment group with the same name as the datastore. This environment group holds the datastore’s connection details (host, port, credentials, etc.) as environment variables.
To link a datastore to an app, reference that environment group by name in the app’s envGroups section. The entry must match the datastore’s name exactly. For example, to connect an app to a datastore named cache:
apps: list. Then attach addons as a list of addons: items.

