page:recipes:admin dashboard:flask:public profiles

Host Admin Dashboard with Flask: Public Profile Assets

Deploy an admin dashboard built with Flask on Ample using the public image delivery 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, and a published bucket serves public assets from the CDN host. Verified on Flask: public objects in a published bucket served from the CDN URL, kept separate from private objects in an unpublished bucket that require authorization (private=ok only for the allowed role). Not separately tested: your image processing and profile-media rules; treat the admin dashboard-specific behavior as your application code.

Representative Queries

Prerequisites

Technical Details

Limitations

Cost Estimate

Workflow Steps

  1. Build and Start: pip install into .ample/python from requirements.txt, then waitress from app.py reading PORT on the python-3.12 template. The server must bind 0.0.0.0 on PORT.
  2. Implement the pattern on PostgreSQL: The fixture's module implements public image delivery.
  3. Wire Object Storage: Create the bucket(s), passing 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 run checks.

Success Checks

Evidence Summary

Next Actions

  1. Browse the catalog index.
  2. Search published recipes by intent, stack, and constraints.
  3. Prepare a side-effect-free deployment plan.
  4. Read the existing agent authentication setup.