Social Media Pattern

Mastodon

Your social network. Your AWS account. Nobody else's algorithm.

A production-ready Mastodon deployment in your own AWS account in about 20 minutes — the free, federated social network, configured the way an AWS consultancy would do it for a growing community.

Deploy on AWS Marketplace →
Who This Is For

A Social Network You Actually Own

Media & Publishers

An owned audience that doesn't depend on someone else's algorithm.

Brand Communities

A dedicated, moderated space instead of renting attention on someone else's platform.

Open Source Projects

Community discussion under your own moderation rules.

Advocacy & Nonprofit Orgs

Reach your audience directly, without algorithmic throttling.

Universities

Alumni and student communities that stay under institutional control.

Professional & Niche Communities

Moderation control that matches your community's actual standards.

If you're tired of building an audience on infrastructure you don't control, the next section shows what running your own instance actually involves.

The Actual Cost Comparison

Managed Mastodon Hosting vs. One Flat Cost

Cost comparison for Mastodon
Masto.hostThis Pattern
PriceFrom $6/mo, scales with community size$0.02/hr flat (~$14.60/mo)
Pricing modelPer instance, tiered by usagePer organization
BillingMonthlyUsage-based, cancel anytime
Data lives onMasto.host's serversYour own AWS account
Cost as you growScales up with active users, storage, and federation trafficStays flat

Masto.host prices by estimated active users, federation processing load, and storage — actual cost at scale depends on your community's size and activity, so confirm current tier pricing directly before publishing. Other managed options found in research (FediHost, toot.io) didn't have clear public pricing to compare.

Flat COST STAYS THE SAME AS YOUR COMMUNITY GROWS

Managed Mastodon hosts like Masto.host price by active users, processing load, and storage — so cost climbs as your instance grows. This pattern's AWS costs scale with actual usage, but there's no per-user tier increase on top of it.

Why Self-Hosted

Free, Federated Social Networking

Mastodon's core is free and open source. Self-hosting it means full moderation control under your own rules, no algorithmic feed manipulation, no ads, and the ability to move your data between servers whenever you want.

Free & open-source, no license fees

No algorithmic feed manipulation

Community data stays in your infrastructure

Full moderation control, no ads

What This Pattern Handles For You

Production-Ready, Following AWS Best Practices

This CloudFormation template and custom AMI deploy a complete Mastodon environment — live in about 20 minutes.

Federated Network

Connect with millions across the fediverse.

Content Control

Robust moderation and content warning tools.

No Algorithms

Chronological timeline without manipulation.

Data Portability

Move your account between servers.

Live in about 20 minutes
The Direct Comparison

What's Easy to Get Wrong, Handled By Default

Obstacles to Deployment Without FOSSonCloud Pattern
Solved By FOSSonCloud Pattern
Obstacle Without FOSSonCloud Pattern

Tuning Sidekiq background job queues for federation traffic

Solved By FOSSonCloud Pattern

Auto-scaling EC2 for web and Sidekiq, sized for you

Obstacle Without FOSSonCloud Pattern

Setting up full-text search infrastructure

Solved By FOSSonCloud Pattern

OpenSearch full-text search, built in from day one

Obstacle Without FOSSonCloud Pattern

Managing media storage costs as the instance grows

Solved By FOSSonCloud Pattern

S3 media storage with CloudFront delivery, pay for what you use

Obstacle Without FOSSonCloud Pattern

Debugging federation and ActivityPub delivery issues

Solved By FOSSonCloud Pattern

ElastiCache Redis for caching and queues, configured for reliable federation

Built By People Who Do This Professionally

FOSSonCloud is built by Ordinary Experts, an AWS Consulting Partner working in Infrastructure as Code since 2014. This isn't a repackaged black-box AMI — the CloudFormation template is open source, so you can see exactly what's being deployed.

Architecture

Mastodon architecture diagram showing the AWS infrastructure components

This pattern deploys a complete Mastodon infrastructure including:

  • Auto-scaling EC2 instances for web and Sidekiq
  • RDS PostgreSQL database
  • ElastiCache Redis for caching and queues
  • OpenSearch for full-text search
  • S3 for media storage
  • CloudFront CDN
Before You Start

What You'll Need

Everything required to go from this page to a running Mastodon deployment.

An AWS Account

With billing enabled and permission to launch resources in the region you plan to deploy to.

A Subscription to This Pattern on AWS Marketplace

Accepting the marketplace terms is what makes the CloudFormation template available to launch in your account.

A Registered Domain Name

Pointed at the infrastructure this pattern creates — needed for your instance's public URL and SSL certificate.

IAM Permissions to Launch CloudFormation Stacks

The stack creates auto-scaling EC2 instances, an RDS database, ElastiCache, OpenSearch, an S3 bucket, and a CloudFront distribution on your behalf.

About 20 Minutes

For the stack to finish launching before your instance is live.

Getting Started

Up and Running in 4 Steps

1

Subscribe to the Mastodon pattern on AWS Marketplace

2

Launch the CloudFormation stack in your AWS account

3

Configure your instance settings

4

Start building your community — live in about 20 minutes

Support Included

Self-Hosted Doesn't Mean Unsupported

Free Onboarding Session

A 1-hour call with a FOSSonCloud engineer, included with every deployment.

Ongoing Email Support

Direct line to support@fossoncloud.com whenever you need it.

Deploy on AWS Marketplace

Production-ready Mastodon in your own AWS account, live in about 20 minutes.

Deploy on AWS Marketplace →