# Self-hosted TinaCMS on AWS
TinaCMS adapted to run without its cloud service: content in DynamoDB, media in S3, the site on Amplify.
- Role of Hrayr Zohrabyan: Everything
- Period: 2026
- With: In use at the Digital Oral History Lab, Institute of Archaeology and Ethnography NAS RA
- Link: https://cmdohlab.org
- Page: https://hrayrzh.com/work/self-hosted-tinacms/

## What it is
A Next.js template with TinaCMS running fully self-hosted on AWS. Editors get a visual editor on the live site; the organisation pays for no CMS subscription and keeps its content in its own account.

## The problem
Small organisations and research projects publish a few times a month and cannot justify a monthly CMS subscription. TinaCMS can be self-hosted, but it does not come with an adapter for AWS storage, and its documentation assumes other databases.

## My part
Everything: the DynamoDB adapter for the TinaCMS data layer, authentication, media storage, deployment, set-up scripts and documentation.

## How it works
- DynamoDB adapter: A data-layer adapter I wrote so that TinaCMS stores and indexes content in AWS DynamoDB.
- Media in S3: Uploads from the editor go to a bucket in the same account.
- Git as the record: Every edit made in the CMS is also a commit in the repository, so content has a full history.
- Deployed on Amplify: Next.js with server rendering; access rules and set-up scripts are part of the template.
- Pinned versions: Dependencies are fixed and the risks of each upgrade are written down, so an update does not break the editor.

## Result
Runs a bilingual research website where editors have published hundreds of changes through the CMS without a developer. The AWS free tier covers most of the usage: the infrastructure costs $0–1 a month, against $20–50 a month for a typical CMS subscription.

## Stack
Next.js 14, TinaCMS 3, TypeScript, AWS DynamoDB, AWS S3, AWS Amplify, NextAuth, next-intl
