agentleFS
AWSKnown publisheraws/agent-toolkit-for-aws/plugins/aws-core/skills/launch-with-aws/SKILL.md

launch-with-aws

Skill2.8k starsChanged 6 months agoApache-2.0View on GitHub

Migrates vibe-coded web applications to AWS. Handles the full workflow from analysis through migration to deployment, producing deployable AWS Blocks infrastructure code. Supports full-stack apps built with vibe-coding platforms (Lovable, Bolt.new, Replit) and frontend web applications and websites: React, Vue, Angular, Next.js, Nuxt, Astro, SvelteKit, Gatsby, Vite, Svelte, Solid, Docusaurus, and others (static sites, SPAs, and SSR frameworks with static export). Triggers on: launch with AWS, launch on AWS, deploy to AWS, migrate to AWS, host my app on AWS, move my app to AWS, transfer my app to AWS. Activates when the user wants to migrate a vibe-coded app or frontend web app to AWS, even if they don't say 'migrate' explicitly.

  • Installs packages

1 other project uses a version of this, 1 of them edited.

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 3 mentionsJun 2026: 7 mentionsJul 2026: 4 mentionsAug 2026: 11 mentionsSep 2026: 11 mentionsOct 2026: 8 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the aws/agent-toolkit-for-aws repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about aws/agent-toolkit-for-aws

The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 44

Talked about on GitHub, Bluesky and Hacker News (44 times).

On GitHub · 39

34 more on GitHub

On Bluesky · 4

On Hacker News · 1

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. About 0 are common, 12 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All commands are run via:

    line 16
  2. Distinctive:

    If the user provides a local path: pass that path directly.

    line 84
  3. Distinctive:

    If the user provides a GitHub URL: pass it directly (the service clones it server-side).

    line 85
  4. Distinctive:

    If neither is provided: use the current working directory.

    line 86
  5. Distinctive:

    Run the script commands in order, surfacing results to the user at each step:

    line 90
  6. Distinctive:

    Always run first. Returns immediately with JSON:

    line 98
  7. Very specific:

    If already authenticated: {"authenticated": true, "reusedCachedSession": true, "baseUrl": "..."}

    line 100
  8. Very specific:

    If silent refresh succeeded: {"authenticated": true, "reusedCachedSession": false, "baseUrl": "..."}

    line 101
  9. Very specific:

    If interactive sign-in is needed: {"authenticated": false, "signInUrl": "https://...", "pid": 12345, "port": 54321, "baseUrl": "..."}

    line 102
  10. Very specific:

    When authenticated is false, immediately display the signInUrl to the user (so they can open it in their browser) and call auth-wait in the …

    line 104
  11. Very specific:

    Do NOT call create-launch for a local directory until the user explicitly confirms.

    line 129
  12. Very specific:

    If status is awaiting_input, check contextInputs for the questions that need answering.

    line 155
  13. Very specific:

    Do NOT call start-launch-execution until the user explicitly confirms.

    line 186
  14. Distinctive:

    After obtaining the download URL (adapt commands for the user's platform if not POSIX):

    line 213
  15. Distinctive:

    Ensure the user's working directory is clean:

    line 225
  16. Distinctive:

    If there are uncommitted changes, ask the user to commit or stash first.

    line 232
  17. Distinctive:

    Create a migration branch and overlay the migrated files:

    line 236
  18. Distinctive:

    If there are conflicts with the user's existing files, present them and ask how to resolve.

    line 252
  19. Very specific:

    Read the DEPLOY.md file in the project root and follow its instructions to deploy the app to the user's AWS account.

    line 256
  20. Distinctive:

    Verify the CloudFront URL that CDK prints on completion.

    line 261
  21. Very specific:

    Important: Always read DEPLOY.md from the migrated output — it is generated specifically for this app and architecture.

    line 263
  22. Very specific:

    If a launch fails during analysis with a failureReason indicating an unsupported app type (or the user's stack doesn't match the supported …

    line 267
  23. Very specific:

    Search for relevant skills based on the app type (e.g.

    line 271

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Launch with AWS

Drives an AWS migration end-to-end using CLI scripts. Takes a user's web application, analyzes it, generates a migration plan with cost estimate, and delivers deployable AWS Blocks infrastructure code.

The AWS MCP server is recommended but is not required. This skill works standalone via its CLI scripts in any agent environment.

Script Invocation

All commands are run via:

python3 scripts/launch_with_aws.py <command> [args...]

where scripts/ is relative to this skill directory. The agent MUST set the working directory to the skill root before invoking commands.

Required files: launch_with_aws.py, launch_config.py, auth.py, auth_callback_server.py, launch_api_client.py, archive.py, service model. When loaded via MCP, fetch all and write to a temp directory preserving structure before invoking.

Each command outputs JSON to stdout on success, or exits non-zero with a JSON error on stderr.

Dependencies: Python 3.10+ and boto3. The script checks both on startup and exits with a clear error if either is missing.

Supported Application Types

Full-stack apps built with vibe-coding platforms, and frontend web applications and websites (static sites, SPAs, and SSR frameworks with static export).

Origin PlatformWhat it covers
LovableLovable-generated full-stack apps (React + Supabase)
Bolt.newBolt.new-generated full-stack apps (React + Supabase)
ReplitReplit-hosted full-stack apps (React + Express.js + PostgreSQL)
FrameworkExamples
React ecosystemReact, CRA, Vite + React, Gatsby, Docusaurus
Vue ecosystemVue, Nuxt (static export), VitePress
AngularAngular
Svelte ecosystemSvelte, SvelteKit (static export)
SSR with static exportNext.js, Nuxt, Astro, SvelteKit
Other modern frameworksAstro, Solid, Preact, Lit, Eleventy
Vite (generic)Any Vite-based app

Other frameworks may also work. If the user's app doesn't match these, see Unsupported Application Handling below.

What Gets Migrated vs. What Stays

Lovable / Bolt.new apps (Supabase-backed):

ComponentWhat happens
Frontend & hostingMigrated to AWS (S3 + CloudFront + Lambda)
Edge functions / server functionsMigrated to AWS Lambda
AI calls (e.g. Lovable AI Gateway)Migrated to Amazon Bedrock
Database (Supabase DB)Stays on Supabase — not migrated
Auth (Supabase Auth)Stays on Supabase — not migrated
Storage & RealtimeStays on Supabase — not migrated

The app continues to call Supabase for database, auth, storage, and realtime from the AWS-hosted application.

Replit apps (Express.js + PostgreSQL):

ComponentWhat happens
Frontend & hostingMigrated to AWS (S3 + CloudFront + Lambda)
Server logic (Express.js)Migrated to AWS Lambda (API Gateway)
Database (PostgreSQL)Schema and code migrated to AWS (Aurora Serverless / DynamoDB). Existing data is NOT migrated — customers must export and import their data separately.
Auth (Replit Auth)Code migrated to AWS (Cognito). Existing user accounts are NOT migrated — customers must re-create or invite users in Cognito.
Realtime (WebSockets)Migrated to AWS (API Gateway WebSocket)
File storageMigrated to AWS (S3). Existing files are NOT migrated.

Replit app infrastructure and code are migrated to AWS-native services, but existing data, user accounts, and files must be migrated separately by the customer.

Input Resolution

Resolve the user's input to a local directory path or GitHub URL:

  • If the user provides a local path: pass that path directly.
  • If the user provides a GitHub URL: pass it directly (the service clones it server-side).
  • If neither is provided: use the current working directory. If it doesn't look like an app directory, ask the user for the path.

Flow

Run the script commands in order, surfacing results to the user at each step:

1. Authentication

python3 scripts/launch_with_aws.py auth-start

Always run first. Returns immediately with JSON:

  • If already authenticated: {"authenticated": true, "reusedCachedSession": true, "baseUrl": "..."}
  • If silent refresh succeeded: {"authenticated": true, "reusedCachedSession": false, "baseUrl": "..."}
  • If interactive sign-in is needed: {"authenticated": false, "signInUrl": "https://...", "pid": 12345, "port": 54321, "baseUrl": "..."}

When authenticated is false, immediately display the signInUrl to the user (so they can open it in their browser) and call auth-wait in the same response:

python3 scripts/launch_with_aws.py auth-wait <pid>

where <pid> is the pid value from the auth-start response. This blocks until the user completes browser sign-in (or times out after 600s). Returns {"authenticated": true, "baseUrl": "..."} on success.

Sessions are capped at 90 days even if the identity provider does not set an expiration; after that the interactive flow is required again.

To check the current session without authenticating, or to sign out:

python3 scripts/launch_with_aws.py session-status
python3 scripts/launch_with_aws.py sign-out

session-status reports whether a session exists and how long until the token and overall session expire. sign-out best-effort revokes the refresh token and deletes the local ~/.launch-with-aws/session.json. On shared or untrusted workstations, run sign-out when finished.

2. Create Launch

For a local directory, present this confirmation and wait for explicit approval:

Your source code will be uploaded to the Launch with AWS service to analyze your application and generate a migration plan. If you later approve execution, an AWS-hosted agent will modify a copy of your source code according to the plan and produce a migrated snapshot for you to download. Your uploaded source code and associated launch data are encrypted in transit and at rest and retained for up to 48 hours for recovery. Your data is never used to train AI models. We exclude Git history, Git-ignored files, and files matching common sensitive-file patterns. Sensitive-file filtering is best effort; review your project for secrets. Continue?

Do NOT call create-launch for a local directory until the user explicitly confirms. A missing or ambiguous response means no.

python3 scripts/launch_with_aws.py create-launch <source-path-or-github-url> [name]

Creates a launch from a local directory (zips, uploads, then creates) or a GitHub URL (passes directly). Returns JSON with the full launch object including launch.launchId.

The launch starts in analyzing status and automatically progresses through analysis and planning.

3. Poll Launch Status

python3 scripts/launch_with_aws.py get-launch-status <launch-id>

Poll until status is planned (ready for execution), awaiting_input (needs context answers — see step 4), or failed. Key status progression:

  • analyzing → detecting app type and dependencies
  • awaiting_input → needs context answers (see refine-plan)
  • planning → generating migration plan
  • planned → ready for execution
  • executing → deployment in progress
  • completed → done
  • failed → check failureReason

If status is awaiting_input, check contextInputs for the questions that need answering. Inputs with required: true must be answered before the launch can proceed; others are optional enrichment.

4. Refine Plan (if awaiting_input)

python3 scripts/launch_with_aws.py refine-plan <launch-id> key1=value1 key2=value2

Provide context answers to refine the plan. Triggers re-planning.

5. Get Full Launch Details & Confirm

python3 scripts/launch_with_aws.py get-launch <launch-id> plan,cost_estimate

Get full launch details. Optional second argument is a comma-separated include list: analysis, plan, execution, cost_estimate, download_url.

Present the cost estimate and plan to the user. The costEstimate field in the response contains estimatedMonthlyCost, region, and a services breakdown with per-service costs.

Confirmation Gate — present and wait for explicit approval:

Migration Summary

  • App type: [detected type from analysis]
  • Architecture: [target architecture from plan]
  • Estimated monthly cost: $X.XX/month
  • Region: us-east-1

Ready to proceed? This will execute the migration in an AWS-managed environment (no cost to you) and produce the migrated snapshot for you to download.

Do NOT call start-launch-execution until the user explicitly confirms.

6. Start Execution

python3 scripts/launch_with_aws.py start-launch-execution <launch-id>

Starts deployment. Then poll with get-launch-status until status is completed or failed. Sleep at least 30 seconds between polls.

7. Download

python3 scripts/launch_with_aws.py get-launch-download-url <launch-id>

Always present the full download URL to the user — they may need it to download the migrated snapshot directly or for reference.

8. List or Delete Launches

python3 scripts/launch_with_aws.py list-launches
python3 scripts/launch_with_aws.py delete-launch <launch-id>

9. Post-Migration: Apply Migrated Code Locally

After obtaining the download URL (adapt commands for the user's platform if not POSIX):

Step A: Download and unpack

curl -L -o /tmp/migration-snapshot.zip "<download_url>"
mkdir -p /tmp/migration-output
unzip -o /tmp/migration-snapshot.zip -d /tmp/migration-output

Step B: Prepare the local workspace

Ensure the user's working directory is clean:

cd <user-app-directory>
git status

If there are uncommitted changes, ask the user to commit or stash first. Do NOT proceed with a dirty working tree.

Step C: Apply migration (3-way merge)

Create a migration branch and overlay the migrated files:

cd <user-app-directory>
git checkout -b aws-migration
rsync -a /tmp/migration-output/ .
git status
git diff --stat

Review the changes with the user. Key additions to highlight:

  • aws-blocks/ — AWS Blocks infrastructure definition
  • DEPLOY.md — deployment instructions
  • Any modified config files

If there are conflicts with the user's existing files, present them and ask how to resolve.

Step D: Follow DEPLOY.md

Read the DEPLOY.md file in the project root and follow its instructions to deploy the app to the user's AWS account. Typical steps:

  1. AWS authentication (aws login --profile aws-migrate --region us-east-1)
  2. CDK bootstrap (first-time only): npm install && npx cdk bootstrap
  3. Deploy: npx cdk deploy --all --progress events
  4. Verify the CloudFront URL that CDK prints on completion.

Important: Always read DEPLOY.md from the migrated output — it is generated specifically for this app and architecture. Do not assume deployment steps from memory.

Unsupported Application Handling

If a launch fails during analysis with a failureReason indicating an unsupported app type (or the user's stack doesn't match the supported list):

  1. Tell the user: "This app type isn't directly supported by Launch with AWS yet. Let me search for other skills that can help deploy this kind of application."
  2. Search for relevant skills based on the app type (e.g. aws-serverless, aws-containers, databases-on-aws, deploy-on-aws, aws-cdk, sagemaker-ai).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.