Build vs. Buy: S3 + Cognito vs. Managed Gated Publishing
The standard AWS-native implementation for authenticated static hosting has four components.

What the DIY stack looks like
The standard AWS-native implementation for authenticated static hosting has four components:
- S3: stores the HTML, CSS, and JS files
- CloudFront: CDN distribution, handles edge caching
- Cognito: user pool for authentication (Google or Microsoft OAuth)
- Lambda@Edge: runs at the CDN edge to check auth tokens before serving content
Infrastructure cost: $5–20/month depending on traffic volume.
This works. Engineers who know AWS can build it and it runs correctly. The question is what it costs.
What it actually costs
Engineering time to build: longer setup, more steps
For a senior engineer familiar with AWS, the steps are:
- Create the S3 bucket.
- Configure the CloudFront distribution.
- Set up the Cognito user pool.
- Write and deploy the Lambda@Edge function.
- Wire the auth flow together.
For someone less AWS-familiar: add more time. The Lambda@Edge + CloudFront interaction has known gotchas (cache behavior, header propagation, cold start behavior). Budget for the debugging time.
Multi-IdP support is not free
Cognito supports Google or Microsoft separately, but running both on the same user pool with proper domain restriction requires configuring a Cognito Identity Pool on top of the User Pool, or using a custom Lambda trigger for domain validation. Each new identity provider is additional configuration and testing time.
Ongoing maintenance
Certificate renewals, Cognito API updates when Google or Microsoft changes their OAuth flows, Lambda@Edge version updates, CloudFront distribution updates, and access policy changes when your company's IdP configuration changes.
More importantly, this infrastructure belongs to whoever built it. When that engineer leaves or moves to a different team, you have an orphaned authentication system that nobody fully understands and everyone is afraid to change.
No publishing CLI or MCP
You upload files to S3 via the AWS console, the AWS CLI, or custom scripts you write yourself. There's no aws-publish ./report.html command that returns a URL in 15 seconds. Non-technical users (PMs, analysts) have no path to publish at all.
The cost comparison
| S3 + CloudFront + Cognito + Lambda@Edge | Display Team | |
|---|---|---|
| Monthly infrastructure | $5–20 | $59 (billed yearly) |
| Setup engineering time | Longer, more steps | Short |
| Annual maintenance (est. 4 hrs/quarter) | $900/year | $0 |
| Multi-IdP (Google + Microsoft) | Complex federation | ✅ Included |
| Publish CLI | ❌ (custom scripts) | ✅ |
| MCP integration | ❌ | ✅ |
| Comments and edits on the page | ❌ | ✅ |
The infrastructure cost is low. The engineering cost is not.
When DIY makes sense
You have spare DevOps capacity and the setup + maintenance burden is acceptable within your existing team's workload.
You need deep customization: custom auth flows, network-level access control, device posture checks, or compliance requirements that a SaaS can't satisfy.
You're in a regulated industry with specific cloud provider requirements: must use AWS GovCloud, must not send data outside a specific region, must use your own Cognito user pool for compliance documentation.
Your security team requires on-premise or VPC-deployed solutions and won't approve external SaaS for content hosting.
When managed makes sense
You don't want to maintain infrastructure. The publishing problem isn't your core product. Owning the hosting stack for internal artifacts is overhead, not value.
You need multi-IdP at a flat price. Google Workspace AND Microsoft 365 SSO, without federation configuration, on every plan from Solo up.
You want agents to publish. Ask your agent: "Publish report.html to Display." Agents publish through MCP, CLI or API, and non-technical users publish from Claude Desktop without a terminal.
You want compliance documentation to be simple. "Display is our vendor. Here is their security documentation" is a better audit answer than "we built this ourselves. Here is our CloudTrail export from March."
FAQ
Is there a way to get DIY costs below $59/month?
Infrastructure cost alone: yes, $5–20/month is achievable. Total cost including engineering time to build, test, and maintain: no. The engineering time dominates in Year 1 and recurs in every year that follows.
Can I migrate from DIY to Display?
Yes. Ask your agent to publish the same HTML files you're currently serving from S3. The URLs change, but the content doesn't. Update the links in Slack, Notion, and Jira. Decommission the S3/CloudFront/Cognito stack.
Does Display use AWS/S3 under the hood?
Display runs on managed infrastructure. You don't need to know or configure any of it.
A full workspace behind every URL
Share with your team and clients
Invite your team and your clients by email. Give each person a role, from Viewer to Editor.
Go back to any version
Each publish and each edit saves a version. The link stays the same.
A Space for each team
Spaces and folders for each team and each client.
Search for people and agents
You and your agents search inside every doc and file you can open, including PDFs and Office files.
See who opened it
Each doc shows who opened it, and when.
Private betaInternal apps that get data from your sourcesConnectors for the tools your team uses
Publish your first doc from your agent
Your team and your clients comment and edit on the page. Your agent updates the doc at the same link. You never pay for seats.
Free to start · Unlimited viewers