amplify-category-api
amplify-category-api copied to clipboard
APIGatewayAuthStack.json is removed on pull, added on push
Whenever I pull an env the APIGatewayAuthStack.json is removed. Then when I push it adds it back. Should APIGatewayAuthStack.json be in the gitignore? Otherwise it keeps changing my repo.
Which Category is your question related to? api Amplify CLI Version 8.1.0 What AWS Services are you utilizing? Cognito, lambda,
yes i've seen this too in our repo
Hey @franklin113 and @hisham I was able to reproduce this issue, and this doesn't appear to be the intended behavior. Marking as a bug 🙂
After further consideration I've adjusted the labels from bug to feature request and labeled as a p3 for the team to evaluate further 🙂
I'm seeing this issue as well. It is confusing, b/c I'm not sure if that file is still needed if amplify pull
is deleting it.
I am regularly seeing this issue which is causing issues running locally.
Any movement on this? I am seeing this as well. The APIGatewayAuthStack.json file is removed when running amplify pull
I am seeing this too. And now I have a CORS issue. Could this be related? [UPDATE 1] YES. I replaced it in the next build and it appears to fix my CORS issue. So seems like a bug to me. [UPDATE 2] Actually, I had a separate build issue.. not so sure this is a bug now.
This keeps happening specially when another computer/developer tries to amplify pull
into their local environment after git cloning the amplify repo. The amplify pull will still delete the file, in our case we're using Amplify CLI Version 10.6.2.
@josefaidt What is the status of this? Still seeing this issue even in latest amplify v11.0.2
.
Are their any known work arounds?
According to this medium post:
If you run into this issue you have 2 options:
- Update your API authentication stack to the new cli-inputs.json format
or
- Configure AWS Amplify to use the previous version 7.4.5
It doesn't explain how to update to the new cli-inputs.json format, though.
Same here
And here
Same here, amplify CLI version 12.1.0
The same issue with amplify\backend\api\APIGatewayAuthStack.json after amplify pull.
I don't understand what to do: restore it every time or remove.
same here, bump it