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.
- If you have an
amplify.yml
file in your repo, rename it toamplify-old.yml
to back it up. - 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: