aws-samples / simple-websockets-chat-app

This SAM application provides the Lambda functions, DynamoDB table, and roles to allow you to build a simple chat application based on API Gateway's new WebSocket-based API feature.
MIT No Attribution
682 stars 280 forks source link

Adding new routes after initial AWS CLI deployment are not recognised #28

Closed acahinton closed 5 years ago

acahinton commented 5 years ago

I have followed the instructions and used the AWS CLI to deploy the application - everything works fine - however, if you add a new route everything appears to have been created but API Gateway returns a forbidden message.

The only solution is to delete the stack and then re-run via the AWS CLI - the new route then works fine.

This may well be a Cloudformation issue or maybe someone can point me in the right direction. To create a new route I simply did the following:

(mirroring all the sections required by the original send message route and function)

As I say, deleting and recreating the stack then works so perhaps a AWS CLI/Cloudformation issue but not a workable solution as the stack is then created with a new url.

acahinton commented 5 years ago

Manually re-deploying the API to the Prod stage adds the new route correctly... I'll need to read a bit around that to get it working with the template to automate this.

maustinstar commented 4 years ago

Experiencing the same issue still. Any updates or insights?