Skip to content

Instantly share code, notes, and snippets.

View swaminator's full-sized avatar
🎯
Focusing

Nikhil Swaminathan swaminator

🎯
Focusing
View GitHub Profile
@swaminator
swaminator / intro.md
Last active November 2, 2022 06:32 — forked from gwryssekk/intro.md
AWS Amplify - Converting Existing Monorepos to the New Supported Model

It was recently announced that AWS Amplify now has built in support for monorepos. Customers who had previously used manual commands in their applications build settings are now able to trigger builds in various apps can now consolidate all of their app settings in a single file at the root of the repository.

Let's assume you have two Amplify apps - app1 and app2 that belong to your monorepo.

  1. If you have an amplify.yml file in your repo, rename it to amplify-old.yml to back it up.
  2. Go to the app1 in the Amplify console, App settings > build settings and update your buildspec to the new version. For example, a simple app with the following build spec:
version: 1
frontend: