aws-spa-deploy SKILL.md skillA

aws-spa-deploy from ziniman/ai-instruct is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ziniman/ai-instruct/aws-spa-deploy@git:20260420.0a6f905

Pins git:20260420.0a6f905 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ziniman/ai-instruct
Path
skills/aws-spa-deploy/SKILL.md
Versions recorded
1
Latest version
git:20260420.0a6f905, committed Apr 20, 2026
Size
15,422 bytes
Repository stars
29
License
Apache-2.0

Use this skill whenever the user is deploying a React/Vite single-page app to AWS, or mentions Amplify, CDK, or wiring up Lambda + API Gateway for a frontend. Covers Amplify hosting, custom domains, CDK backend (Lambda + API Gateway), SES email, CORS configuration, and environment variables. Skip for non-AWS hosts (Vercel, Netlify, Cloudflare Pages), pure backend services without an SPA, or server-rendered apps (Next.js SSR on Vercel).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Deploying a Static SPA on AWS

> Applies to: React/Vite SPAs on AWS (Amplify + CDK) | Updated: February 2026

A focused guide for deploying a React/Vite single-page app on AWS with optional API backend using CDK (Cloud Development Kit). Covers Amplify hosting, Lambda + API Gateway, and SES email.

## Contents

1. [Before you start](#before-you-start)
2. [Architecture](#architecture)
3. [Costs at a glance](#costs-at-a-glance)
4. [Amplify Hosting](#amplify-hosting)
5. [CDK Backend](#cdk-backend)
6. [SES Email](#ses-email)
7. [Common problems](#common-problems)

---

## Before you start

Answer these questions before generating any code. Each has a default assumption  -  confirm or override before proceeding.

**Q: Do you need a backend API, or is this a static site with no server logic?**
Default: static only  -  if yes, skip the entire CDK section.

**Q: Do you have a custom domain name you want to use?**
Default: no  -  skip the domain and SSL subsections.

**Q: What is your target AWS region, and does it match your default AWS CLI region?**
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ziniman/ai-instruct/aws-spa-deploy@sha256:f46269634f6646c2

The line at the top of this page pins the label git:20260420.0a6f905, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_hjcl6kb32jdi4pvt.svg)](https://markdownregistry.com/a/art_hjcl6kb32jdi4pvt)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Apr 20, 2026.

versioncommittedcommitsizeaudit
git:20260420.0a6f905 latest2026-04-20 0a6f905 15,422 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (15422 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ziniman/ai-instruct · 29 stars · license Apache-2.0 · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_hjcl6kb32jdi4pvt
GET https://markdownregistry.com/api/v1/resolve?ref=ziniman/ai-instruct/aws-spa-deploy
GET https://markdownregistry.com/api/v1/blob/f46269634f6646c28cd74410d8becdffbd8f290d8a29aa9fb83fdda0d9b70e8c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ziniman/ai-instruct

CLAUDE.md CLAUDE.md file
ziniman/ai-instruct · CLAUDE.md
git:20261020.684a87e · audit A · 29 stars
llms.txt llms.txt file
ziniman/ai-instruct · llms.txt
git:20260311.73a01d3 · audit A · 29 stars
google-analytics-4 SKILL.md skill
ziniman/ai-instruct · skills/google-analytics-4/SKILL.md · Use this skill whenever the user installs, configures, or debugs Google Analytics 4, or mentions gtag.js, GTM…
git:20260420.0a6f905 · audit F · 29 stars
seo-llmo SKILL.md skill
ziniman/ai-instruct · skills/seo-llmo/SKILL.md · Use this skill whenever the user is building, reviewing, or preparing to launch any public-facing website or web app…
git:20260427.399cd67 · audit B · 29 stars
web-accessibility SKILL.md skill
ziniman/ai-instruct · skills/web-accessibility/SKILL.md · Use this skill whenever the user is building or reviewing any web UI. Accessibility is a baseline requirement, not a…
git:20260420.0a6f905 · audit A · 29 stars
web-performance SKILL.md skill
ziniman/ai-instruct · skills/web-performance/SKILL.md · Use this skill whenever the user is improving Core Web Vitals or page load performance, or mentions slow pages…
git:20260502.4621eea · audit B · 29 stars

Every file in ziniman/ai-instruct

Browse by kind, by grade A, or by owner.