amplify-cli: Error when building: Data did not validate against the supplied schema

Please describe which feature you have a question about? My build fails with the following error: There was an error initializing your environment. 2021-11-15T13:29:17.531Z [INFO]: Error: Data did not validate against the supplied schema. Underlying errors were [{"keyword":"required","dataPath":"","schemaPath":"#/required","params":{"missingProperty":"storageAccess"},"message":"should have required property 'storageAccess'"}]

Provide additional details Amplify push from amlify-cli builds the backend. However when the code is pushed to gitlab there is this error. No idea what happened. No changes were brought to this commit in the backend.

What AWS Services are you utilizing? Amplify console. AppID: do5lfh5kuwuas, region: eu-west-1. Amplify cli is set to latest, so 7.3.1. I have just checked, no problem when build with 6.4.0.

Provide additional details e.g. code snippets Image image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (11 by maintainers)

Most upvoted comments

Thanks @jk171505. @dmost714 @jk171505 @OlgaMaslova We have validated all of our files against our fix here (#8881). We plan to do a release with the fixes later today.

@jk171505 @OlgaMaslova This issue has been fixed and rolled out. Please let us know if you’re still seeing this error.

@dmost714 thanks for all the information and we’re tracking the other issue in 8895 as your mentioned above.