What are Actions?
Actions are reusable workflows that can be configured to run on your installs. Each action consists of:- A trigger that determines when the action runs
- One or more steps that define what the action does
- Running database migrations
- Executing maintenance scripts
- Collecting diagnostic information
- Automating operational tasks
- Running custom health checks
How do you configure an Action?
Create anactions directory at the root of the app, and create a TOML file for
each action. e.g., alb_healthcheck.toml deployment_restart.toml
kubectl_logs.toml.
Actions along with components, the sandbox and app metadata are sent to the Nuon control plane with the CLI command nuon apps sync. If you change and add additional actions, you need to run nuon apps sync again to upload the changes. But unlike components, actions do not need to be built.

public_repo block) or a private GitHub repo (using a connected_repo block).
Read more about VCS configuration here.
For example, to pull logs from all Kubernetes pods in a namespace, you would
write an action like this:
actions/kubectl_logs.toml
actions/http_healthcheck.toml
We maintain a collection of commonly-used
actions in an open-source repo for you to
get started with.
Running Actions
Actions can be triggered in several ways:- Manually via the dashboard or CLI
- On a schedule
- In response to events

Action Triggers
Actions can run manually, on a cron schedule, or in response to install lifecycle events. The supported triggers that are not tied to a specific component are:manualcronpre-provisionpost-provisionpost-provision-sandboxpre-reprovisionpost-reprovisionpre-deprovisionpost-deprovisionpre-deploy-all-componentspost-deploy-all-componentspre-teardown-all-componentspost-teardown-all-componentspre-deprovision-sandboxpost-deprovision-sandboxpre-reprovision-sandboxpost-reprovision-sandboxpre-update-inputspost-update-inputspre-secrets-syncpost-secrets-syncrole-enabledrole-disabled
pre-provision or pre-reprovision that include a stack-run,
the trigger will be called right after the runner is healthy.
post-provision-sandbox runs immediately after the initial sandbox apply
succeeds, before secrets sync, DNS provisioning, and component deployment.
post-provision runs after the complete install provision workflow, including
component deployment.
Role change triggers
Therole-enabled and role-disabled triggers fire when a customer enables or
disables an operation role in their install stack.
Use these to run validation, auditing, or setup tasks whenever elevated
permissions are granted or revoked.
Component triggers
The following triggers require acomponent_name field to be set, as they are
tied to a specific component:
pre-deploy-componentpost-deploy-componentpre-teardown-componentpost-teardown-componentpre-enable-componentpost-enable-componentpre-disable-componentpost-disable-component
pre-component-deploy and post-component-deploy have been renamed to
pre-deploy-component and post-deploy-component for consistency with other
triggers. pre-sandbox-run and post-sandbox-run have been deprecated, in
favor of pre|post-reprovision, pre|post-provision, and
pre|post-deprovisionAction History
You can view the history of action runs using the dashboard: