page:recipes:inventory manager:asp net core:private attachments

Host inventory manager with ASP.NET Core: private attachments

Deploy an inventory manager built with ASP.NET Core on Ample using the private document library 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 ASP.NET Core: a role-to-document access model with negative tests (401 without identity, 403 for the wrong role) and a private-bucket round-trip for the allowed role (private=ok). Not separately tested: your identity integration and role assignments; treat the inventory manager-specific behavior as your application code.

Representative Queries

Prerequisites

Infrastructure Requirements

Tested Configuration

Workflow Steps

  1. Build and start: dotnet publish -c Release -o out in the builder, then dotnet .dll on the dotnet-10 template with ASPNETCORE_URLS bound to PORT. The server must bind 0.0.0.0 on PORT.
  2. Implement the pattern on PostgreSQL: The fixture's module implements a private document library with necessary tests and checks.
  3. Wire object storage: Create the bucket(s), then pass endpoint, region, bucket, and keys as --env values; use path-style addressing.
  4. Deploy: Execute the synchronous deploy command and check the exit status.
  5. Verify: Check the live URL and pattern self-test routes, and review logs if any failures occur.

Examples

Success Checks

Limitations

Cost Estimate

Last Verified At

Next Actions