AWS Amplify CLI 7.5.0 Deletes APIGatewayAuthStack.json

Oscar Galvis
2 min readNov 25, 2021

So, there is a new version of Amplify CLI, 7.5.0 which found out the hard way that it is not compatible with the previously generated APIGatewayAuthStack.json template. What does this mean? means if you were using amplify to deploy your authenticated API Gateway, it will delete your cloudformation template and once deployed your API will throw an “authRole/CognitoIdentityCredentials is not authorized to perform: execute-api:Invoke” error, leaving your authenticated front end application unable to communicate with the server.

The new format is a lot simpler and better, it uses CDK and creates a new file cli-inputs.json with an easier to understand format. If you want to add custom logic to your API deployment you will need to do “amplify override api”. However, would have been nice from AWS to keep backwards compatibility.

cli-inputs.json example

If you run into this issue you have 2 options:

  1. Update your API authentication stack to the new cli-inputs.json format

or

2. Configure AWS Amplify to use the previous version 7.4.5

Hope you find this useful, took me a few hours to find the solution.

--

--

Oscar Galvis

I'm a software builder. I work with IT architecture and cloud computing.