Override feature enablement migration
Amplify CLI version 7 and above has been updated to give developers the ability to override Amplify-generated IAM, Cognito, and S3 configuration to best meet app requirements. With the new override capability, developers can easily configure their backend with Amplify-provided defaults but still customize fine-grained resource settings.
The new overrides capabilities or any future resource changes modifies the file structures of your Amplify project under the hood. Projects created before Amplify CLI version 7 require a migration. It is recommended to test this migration in a non-production environment first, without any updates to the app:
amplify add env test
amplify override <api|auth|project|storage>
oramplify update <api|auth|project|storage>
- Answer "y" to migrate your resources
amplify push
- Test your app scenarios now with this test environment
Once verified, switch to your original environment amplify env checkout <env-name>
and apply the override migration by either running amplify override <category>
or amplify update <category>
.