Use separate Secrets when outposts represent different
Modal Environments or trust domains.
Create the additional Secret in Modal, update modal.Secret.from_name(...) in that
outpost’s generated application, and redeploy it. The selected credential must be
authorized for the corresponding outpost.
Each application can use different repositories, tools, compute, regions, schedules,
retention, credentials, and Modal tags. Edit and deploy each generated file normally,
either one at a time:
uv run modal-devin deploy outposts/frontend.pyuv run modal-devin deploy outposts/backend.py
or all at once by omitting the file. deploy then deploys every *.py file in
--outposts-dir (outposts/ by default), continuing past a failed deployment and
reporting every outpost that failed at the end:
Give every deployment a distinct, durable worker name. Names scope its Modal
resources and resumable state; reusing a name can cause separate outposts to target
the same resources.
Prefer a stable execution-environment name such as production-vpc over a
temporary implementation detail.