This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Stage not updated after switching functions #77
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
language/typescript
Related to the Typescript workshop
🐛 Bug Report
What is the problem?
I ran into a weird issue when completing the Typescript lab today. After introducing the hit counter function and deploying, the API Gateway stage ("prod") did not get updated, and it was still calling the original function. The weird part is that if I went to the API Gateway console and tested manually from the Resources node under the 'Endpoint' endpoint, it worked fine and called the new function.
Here: https://cdkworkshop.com/20-typescript/40-hit-counter/400-use.html
To fix it, I had to make a change to the API Gateway in the .ts file (I changed the name from Endpoint to HitCounterEndpoint, which I would recommend for the lab since it can be hard to pick out on the API Gateway console). When I deployed, the old broken gateway endpoint was destroyed and a new working one was created in its place.
Reproduction Steps
Not sure what I did differently to cause this. I had a few typos in the function that were causing it to fail before I got to the expected AccessDenied exceptions, but I fixed those and redeployed. I don't think they were related.
Verbose Log
Environment
Other information
The text was updated successfully, but these errors were encountered: