The infrastructure every product ends up needing, already written.
Each pattern takes one job, such as deploying without stored keys or surviving a lost database, and gets you from reading about it to an app that is built that way and scored for it.
- Pick the job. Read what it does, step by step, with the full configuration.
- Hand it to your coding agent. Add the DevOpser skill, paste the prompt, and it builds the pattern in your repository.
- Put the app on the catalog. Add it to the DevOpser catalog to have it scored, with fixes as pull requests. Free for your first 10 apps.
15 patterns
Foundations
-
OpenTofu remote state in S3 with state locking
Keep OpenTofu state in a versioned, encrypted S3 bucket with a lock, so the whole team works from one copy and two runs cannot overwrite each other.
- tofu apply
- State lock
- S3 state bucket
- Old versions kept
Deploy an app
-
Create an ECR repository with image scanning and a lifecycle policy
A private container registry that scans each image when it is pushed, never lets a tag be overwritten, and deletes old images on its own so the storage bill does not creep up.
- docker push
- ECR repository
- Scan on push
- Lifecycle cleanup
-
Deploy a web app on AWS App Runner with Postgres and Redis
Run a container on App Runner with an RDS Postgres database and an ElastiCache Redis that only the app can reach. The database password is generated for you and never appears in your code.
- Browser
- App Runner
- VPC connector
- Postgres and Redis
-
EKS cluster with a managed node group in private subnets
A Kubernetes cluster whose worker nodes have no public addresses and whose API only answers the address ranges you list, with the two IAM roles it needs and nothing wider.
- kubectl
- Cluster API
- Managed node group
- Pods in private subnets
-
Host a static website on S3 and CloudFront with HTTPS
Serve a static site from a private S3 bucket through CloudFront on your own domain with an ACM certificate. Visitors get HTTPS and a cache close to them, and the bucket itself is never public.
- Browser
- Route 53
- CloudFront
- Private S3 bucket
Access and identity
Network
-
AWS VPC with public and private subnets and a NAT gateway
A network across two availability zones where servers and databases sit in private subnets that the internet cannot reach directly, and still have a way out for updates and API calls.
- Internet
- Public subnet
- NAT gateway
- Private subnet
-
Set up a custom domain with an ACM certificate and Route 53
Get a free certificate that renews itself for your apex domain and www, and point both names at your AWS endpoint. Visitors reach your product on your own domain over HTTPS.
- Browser
- Route 53
- ACM certificate
- Your endpoint
-
WireGuard VPN server on EC2 to reach private subnets
A small EC2 instance that lets your team reach databases and internal services in private subnets from a laptop, with one UDP port open and no SSH port at all.
- Laptop
- WireGuard tunnel
- VPN server
- Private subnet
Protect
-
Add AWS WAF to an App Runner service
Put a web ACL in front of an App Runner service so common attack requests and floods from a single IP address are turned away before they reach your container.
- Browser
- WAF web ACL
- App Runner
- Your app
-
Private S3 bucket with encryption, versioning and a TLS-only policy
A bucket for uploads, exports or backups that cannot be made public by mistake, keeps earlier copies of changed files, and cleans up old copies so the bill does not grow without limit.
- Application
- TLS request
- Bucket policy
- Encrypted object
-
Store app secrets in AWS Secrets Manager with least privilege access
Keep API keys and generated passwords in Secrets Manager, encrypted with your own KMS key, where exactly one role can read exactly those secrets. Nothing sits in a .env file or in the repository.
- App role
- IAM policy
- Secrets Manager
- KMS key
Release
-
Run staging and production from one OpenTofu configuration
Apply the same configuration twice with two variable files, so staging is a real copy of production instead of a hand-built lookalike. A name prefix and default tags keep the two sets of resources apart.
- One configuration
- staging.tfvars
- Apply to staging
- production.tfvars
- Apply to production
Recover
-
AWS Backup plan for daily RDS backups selected by tag
A backup plan that copies every database tagged backup = daily into a vault once a day and deletes each copy after 35 days, so adding a new database to backups is one tag.
- Tagged database
- Backup plan
- Daily job
- Backup vault
-
Copy AWS backups to another region and restore from them
A backup plan that copies every daily recovery point to a vault in a second region, so your data survives the loss of the region you run in. It covers the data only, and the steps say what else a restore needs.
- Tagged resource
- Primary vault
- Copy job
- Second region vault
- Restore
No pattern matches that yet. Add the one you were looking for.
Have a pattern that works in production?
Add it. Approved patterns carry your name and a badge for your README that links back here.
Add your pattern