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


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: 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'

posta 2 anni fa1925 visualizzazioni
2 Risposte

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.

con risposta 2 anni fa

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

sudo npm install -g @aws-amplify/cli --unsafe-perm=true
con risposta 10 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande