# AWS migration expert for vibe-coded apps

> Moves your vibe-coded app to AWS with a plan and deployable code.

- **What it does:** Takes a web app built on tools like Lovable, Bolt.new or Replit (or a frontend site) and moves it to Amazon's cloud. You get a migration plan with a cost estimate and ready-to-deploy hosting setup code.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_27361e2d628fabea5578df24`
- **Author:** aws on GitHub (https://github.com/aws/agent-toolkit-for-aws), Apache-2.0 license, found on skills.sh (https://www.skills.sh/aws/agent-toolkit-for-aws/launch-with-aws)
- **Safety:** Checked by Orbit: nothing risky found in what it runs or reads
- **Last updated:** 2026-11-25
- **Page:** https://orbitinbox.app/s/aws-migration-expert-for-vibe-coded-apps

## Skill

The text aws on GitHub published, as they wrote it:

---
name: launch-with-aws
description: "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."
metadata:
  version: "5"
---

# 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](https://docs.aws.amazon.com/blocks/latest/devguide/what-is-blocks.html) 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:

```bash
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](scripts/launch_with_aws.py), [launch_config.py](scripts/launch_config.py), [auth.py](scripts/auth.py), [auth_callback_server.py](scripts/auth_callback_server.py), [launch_api_client.py](scripts/launch_api_client.py), [archive.py](scripts/archive.py), [service model](references/launchwithaws-2026-06-15.json). 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.

Two global flags may be added to any command: `--region <region>` selects the region the service runs the migration in, and `--aws-mcp-url <url>` passes the URL of the AWS MCP server the agent is connected to. See step 2.

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 Platform | What it covers |
|----------------|---------------|
| Lovable | Lovable-generated full-stack apps (React + Supabase) |
| Bolt.new | Bolt.new-generated full-stack apps (React + Supabase) |
| Replit | Replit-hosted full-stack apps (React + Express.js + PostgreSQL) |

| Framework | Examples |
|-----------|---------|
| React ecosystem | React, CRA, Vite + React, Gatsby, Docusaurus |
| Vue ecosystem | Vue, Nuxt (static export), VitePress |
| Angular | Angular |
| Svelte ecosystem | Svelte, SvelteKit (static export) |
| SSR with static export | Next.js, Nuxt, Astro, SvelteKit |
| Other modern frameworks | Astro, 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):**

| Component | What happens |
|-----------|-------------|
| Frontend & hosting | Migrated to AWS (S3 + CloudFront + Lambda) |
| Edge functions / server functions | Migrated 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 & Realtime | Stays 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):**

| Component | What happens |
|-----------|-------------|
| Frontend & hosting | Migrated 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 storage | Migrated 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:

- If the user provides a **local path**: pass that path directly.
- If the user provides a **GitHub URL**: clone the repository locally and use that directory.
- 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

```bash
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:

```bash
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:

```bash
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 data-handling confirmation verbatim and wait for explicit approval:

> Your source code will be uploaded to the Launch with AWS service in **[regionName], [region]** ([sourceLabel]) 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? Or reply with **[otherRegions regionName]** to run the migration there instead.

Fill in the region fields from `resolve-region`, verbatim, and offer each `otherRegions` entry as an alternative. If the agent is connected to an AWS MCP server, pass that server's URL verbatim. The script reads the region from it and decides whether it counts as a signal.

```bash
python3 scripts/launch_with_aws.py resolve-region [--aws-mcp-url https://aws-mcp.<region>.api.aws/mcp]
```

Returns `{"region": ..., "regionName": ..., "source": ..., "sourceLabel": ..., "baseUrl": ..., "otherRegions": [{"region": ..., "regionName": ...}]}`.

Do NOT call `create-launch` until the user explicitly confirms; a missing or ambiguous response means no. Naming one of `otherRegions` is both a region choice and approval — pass its `region` as `--region` and do not ask again.

```bash
python3 scripts/launch_with_aws.py create-launch <app-directory> [name] --region <region>
```

Zips the directory, uploads it, then creates the launch. Returns the full `launch` object including `launch.launchId` and the `region` it was created in, which becomes the user's saved default. **A launch exists only in its own region** — pass its `--region` on every later command.

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

### 3. Poll Launch Status

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

Poll until `status` is `planned` (ready for execution) or `failed`; report any other status to the user. Key status progression:

- `analyzing` → detecting app type and dependencies
- `planning` → generating migration plan
- `planned` → ready for execution
- `executing` → deployment in progress
- `completed` → done
- `failed` → check `failureReason`

### 4. Get Full Launch Details & Confirm

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

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 ([costEstimate.region] pricing)
> - Migration runs in: [regionName], [region]
>
> 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.

### 5. Start Execution

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

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

### 6. Download

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

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

### 7. List or Delete Launches

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

`list-launches` queries both regions and returns `items` with a `region` on each launch; add `--region` to query one. A region that cannot be reached is reported under `errors` instead of failing the command, unless every queried region fails, in which case the command exits with that error.

### 8. 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

```bash
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:

```bash
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:

```bash
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`, `aws-database`, `aws-deployment`, `aws-cdk`, `aws-ai-ml`).

---

## License

aws/agent-toolkit-for-aws is by aws, used under the Apache-2.0 license. The license file: https://github.com/aws/agent-toolkit-for-aws/blob/main/LICENSE

```text
Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

----- NOTICE -----

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
```

By aws on GitHub (aws/agent-toolkit-for-aws, Apache-2.0 license), found on skills.sh, credited on Orbit.