page:recipes:subscription content:phoenix:inventory imports

Host subscription content with Phoenix: inventory imports

Summary

Deploy a subscription content built with Phoenix on Ample using the bulk import staging pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, a managed PostgreSQL 16 database is auto-provisioned and injected as DATABASE_URL, a private S3-compatible bucket holds objects with credentials delivered as encrypted environment variables. Verified on Phoenix: a CSV staged as an object, row-level validation with per-row errors recorded, and a restart-safe import keyed by import id (imported=2 rejected=1 restart=ok). Not separately tested: your import format, mapping and conflict rules; treat the subscription content-specific behavior as your application code.

Representative Queries

Resource Requirements

Infrastructure Requirements

Prerequisites

Workflow Steps

  1. Build and start: Execute mix deps.get, MIX_ENV=prod mix compile, and mix release in the builder.
  2. Implement the pattern on PostgreSQL: Copy the modular approach into your schema; keep migrations idempotent.
  3. Wire object storage: Create the bucket(s), then pass endpoint, region, bucket and keys as --env values.
  4. Deploy: Run the synchronous deploy once and read the result.
  5. Verify: Fetch the live URL and test routes.

Examples

Success Checks

Limitations

Cost Estimate

Evidence Summary

  1. Canary run: Phoenix pattern fixture deployed on Ample; checks passed.
  2. Canary run: The same Phoenix app deployed with a --release-command migration.

Unknowns

Action Items