Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Stage not updated after switching functions #77

Closed
ericzbeard opened this issue Sep 25, 2019 · 3 comments · Fixed by aws/aws-cdk#4552
Closed

Stage not updated after switching functions #77

ericzbeard opened this issue Sep 25, 2019 · 3 comments · Fixed by aws/aws-cdk#4552
Assignees
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

Comments

@ericzbeard
Copy link

ericzbeard commented Sep 25, 2019

🐛 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

  • CDK CLI Version:
  • Section:
  • Browser:
  • Language:

Other information

@ericzbeard ericzbeard added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 25, 2019
@eladb
Copy link
Contributor

eladb commented Oct 17, 2019

Should be fixed by aws/aws-cdk#4551

@SomayaB SomayaB added language/typescript Related to the Typescript workshop and removed needs-triage This issue or PR still needs to be triaged. labels Nov 6, 2019
@SomayaB
Copy link
Contributor

SomayaB commented Nov 6, 2019

Hi @ericzbeard, were you able to see if your issue was fixed by the PR mentioned in the comment above?

@SomayaB SomayaB added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. closing-soon This issue will automatically close in 4 days unless further comments are made. and removed response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Nov 6, 2019
@NGL321
Copy link
Contributor

NGL321 commented Nov 14, 2019

Closing due to lack of activity.

Feel free to reopen if this is incorrect!
😸

@NGL321 NGL321 closed this as completed Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants