Skip to content

Latest commit

 

History

History
245 lines (182 loc) · 5.37 KB

resources.md

File metadata and controls

245 lines (182 loc) · 5.37 KB

Resources and routing

The CLI manages team secrets, standalone database workloads, manifest-backed services, object storage, custom domains, and path-based ingress routes. All of these commands use the active context and team unless you pass an explicit override.

Team secrets

List secret metadata without revealing values:

adios secrets list

Avoid placing a secret directly in shell history. Read it without terminal echo and send it through standard input:

printf 'Database password: ' >&2
IFS= read -r -s ADIOS_SECRET_VALUE
printf '\n' >&2
printf '%s' "$ADIOS_SECRET_VALUE" | adios secrets set DATABASE_PASSWORD --stdin
unset ADIOS_SECRET_VALUE

The hidden-input form above works in Bash and Zsh.

Files are also supported:

adios secrets set TLS_CERTIFICATE --from-file ./certificate.pem

Inspect metadata or explicitly reveal a viewable value:

adios secrets get DATABASE_PASSWORD
adios secrets get DATABASE_PASSWORD --show-value

--show-value writes the value to standard output. Use it only in a trusted terminal or a carefully controlled pipeline.

Remove a secret only after checking its manifest and workload references:

adios secrets delete DATABASE_PASSWORD

In adios.yaml, reference a team secret without copying its value:

env:
  DATABASE_PASSWORD: secret://DATABASE_PASSWORD

The CLI can generate strong secrets during deployment:

secrets:
  SESSION_SECRET: secret://generate:64
env:
  SESSION_SECRET: secret://SESSION_SECRET

Standalone databases and backing services

Create and launch Postgres with a previously stored password:

adios databases create app-db \
  --template postgres:16 \
  --database app \
  --user app \
  --password-secret DATABASE_PASSWORD

Supported template families include Postgres, pgvector, Redis, RabbitMQ, MongoDB, and MySQL. Check your installed version for the accepted examples and flags:

adios databases create --help

Inspect database workloads or launch one that was created without launch:

adios databases list
adios databases get app-db
adios databases launch app-db

The aliases adios database and adios db are also available.

Manifest-managed resources

For an application and its database to share one repeatable deployment, put the resource in the application manifest:

name: api-with-data
type: api
runtime: node@24
build_cmd: npm ci
start_cmd: node server.js
port: 8080

secrets:
  POSTGRES_PASSWORD: secret://generate:32

resources:
  db:
    type: database
    template: postgres:16
    database: app
    username: app
    password: secret://POSTGRES_PASSWORD

env:
  NODE_ENV: production
  PORT: "8080"
  DATABASE_URL: secret://DATABASE_URL

The resource password is generated before reconciliation. The managed Postgres connection is then exposed through the derived DATABASE_URL secret. The CLI records the managed resource identity in the manifest after a successful deployment.

Use ref instead of template to attach an existing resource without asking Adios to create another one:

resources:
  db:
    ref: existing-db
    mode: read_only

See the managed Postgres example.

Object storage

Create a managed bucket:

adios storage create assets
adios storage list
adios storage get assets

Create and publish a managed bucket through a custom hostname:

adios storage create assets \
  --public-hostname assets.example.com \
  --public-read

Import an existing S3-compatible bucket without transferring its lifecycle to Adios:

adios storage create imported-assets \
  --external \
  --endpoint https://s3.example.com \
  --backend-bucket assets-prod

Publishing and route creation are separate controls:

adios storage publish assets --host assets.example.com --public-read
adios storage route assets --host cdn.example.com --path /
adios storage unpublish assets

Create narrowly scoped S3 access keys and store the returned secret immediately:

adios storage access-keys create assets \
  --name uploader \
  --action s3:PutObject \
  --prefix uploads/
adios storage access-keys list assets

Revoke credentials that are no longer needed with adios storage access-keys delete.

Custom domains

Add the hostname and inspect the DNS challenge:

adios domains add api.example.com
adios domains list

After adding the displayed DNS records and allowing them to propagate:

adios domains verify api.example.com
adios domains route api.example.com --app <app-id>

Remove a claim by its domain ID:

adios domains remove <domain-id>

Removing domain from an application manifest does not delete an existing claim. Domain removal is intentionally explicit.

Ingress routes

Ingress routes send a host and path prefix to a workload:

adios ingress add \
  --host app.example.com \
  --path /api \
  --app orders-api \
  --strip-prefix \
  --rewrite-to /

List and update routes before removing them by ID:

adios ingress list
adios ingress update <route-id> --priority 200
adios ingress remove <route-id>

Routes support public, auth, and private exposure values. Use --traffic-policy with inline JSON or @file only when you need an explicit routing policy; inspect adios ingress add --help for the exact flags in your version.

Back to the documentation index