How do you update Amplify build version for CI/CD?

1

The root problem is that I cannot successfully build my app. I get the error: "File project: data should NOT have additional properties: 'graphqltransformer'"

This led me to the following thread: https://github.com/aws-amplify/amplify-cli/issues/6117. It appears that I need to set my amplify build version to a later version. However, I don't think the advanced settings are accessible anymore in the latest version of the aws amplify console.

In the amplify console, in the provision tab I can see "ENV VERSION_AMPLIFY=6.3.1" My local cli is amplify 7.6.5

What is the easiest way to either remedy the error or update the amplify version that docker is using in the build process?

Bonus question: local amplify cli update fails from 7.6.5 to 7.6.7 when running 'npm i -g @aws-amplify/cli'

adam
質問済み 2年前1925ビュー
2回答
0

I was experiencing the same problem and just figured it out myself. Sign in to AWS and go to the Amplify page. Under "App settings" on the left-side navigation pane, go to "Build settings". Scroll down to the "Build image settings" section and click the Edit button. A window will pop up, under the "Live package updates" section click on the "Add package version override" dropdown and select Amplify CLI. You can try matching it to your current CLI version or leave it set to "latest", and click Save. Now you can go to your Amplify project, click on any icon in the pipeline chart (Provision - Build - Deploy - Verify) and in the top right of the page click on the "Redeploy this version" button.

Steps for configuring live package updates can also be found here.

andrew
回答済み 2年前
0

You may also try the following command that worked for me :

sudo npm install -g @aws-amplify/cli --unsafe-perm=true
AWS
回答済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ