I just came across this error and after exploring various blogs, I find out that adding this ""APIKeyExpirationEpoch": -1, "CreateAPIKey": -1" ,as mentioned in comment above, is deprecated and causing this error [NoApiKey: No api-key configured]. My way is to simply run the amplify update api, having previously deleted apikey expiration epoch -1 to start with a clean slate.