aws-spa-deploy

Solid

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).

DevOps & Infrastructure 20 stars 1 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 81/100

Stars 20%
44
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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?** Default: us-east-1. Check with `aws configure get region`. If they differ, pass `--region` explicitly to every CLI command and use the explicit bootstrap form (see CDK section). **Q: Do you need to send emails from the site (contact forms, notifications)?** Default: no - skip the SES section entirely. **Q: Is this a brand new AWS account?** Default: no (existing account). If new: SES starts in sandbox mode (can only send to verified...

Details

Author
ziniman
Repository
ziniman/ai-instruct
Created
3 months ago
Last Updated
today
Language
JavaScript
License
Apache-2.0

Integrates with

Related Skills