Amplify diff deploy: how to only redeploy on changes to a part of a monorepo?

0

We have a project in a monorepo: the two folders at the root of our project are named api and ui. We use Amplify to deploy and serve the front end (ui) but not the back end (api). We only want Amplify to redeploy on a change in the ui folder. We tried setting the following environment variables in the AWS Console at AWS Amplify -> our app -> App settings -> Environment variables:

AMPLIFY_DIFF_DEPLOY=true

AMPLIFY_DIFF_DEPLOY_ROOT=ui

But this did not work: a change pushed with only changes in the api folder triggered a build and redeploy. We tried with

AMPLIFY_DIFF_DEPLOY=true

and

appRoot: ui in Build settings

But again this did not work: a change pushed with only changes in the `api folder triggered a build and redeploy. Finally, we tried

AMPLIFY_DIFF_DEPLOY=true

AMPLIFY_DIFF_DEPLOY_ROOT=ui

and

appRoot: ui in Build settings

alas, to no avail: still got a build and redeploy and a change in the api folder (no change in the ui folder). How do folks get Amplify diff deploy working?

Jake
질문됨 2년 전68회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠