Description
Describe the bug
update-stack seems to deploy but does not actually update the JSON data in the API. Note: running locally works perfectly. Swagger shows proper data locally but not on AWS version after update-stack
. Maybe worth noting that the db.json in the deployment folder has been updated. Just seems that it's not being uploaded/deployed. As a work-around, I am having to create a brand new Lambda stack every time I edit the JSON (can't keep doing)
To Reproduce
Deploy a JSON jsonsls create-stack ../DB/db.all--.json
Make a change to the JSON shape.
Run local:
jsonsls run ../DB/db.all--.json
[Works great]
Update the deploy with the exact same DB:
jsonsls update-stack ../DB/db.all--.json
...passes all the tests and "deploys", but the deployment is the old JSON data
Have done this several times. Does not update the API. Swagger still shows old fields and old results (using the new link that the script generates)
Check AWS Identity... done
✔ Validate JSON Serverless Directory
✔ Copy Template Files
✔ Update AuthSettings
✔ Update Appconfig
✔ Validate JSON Serverless Directory
✔ Validate JSON Serverless Directory
✔ Validate JSON Serverless Directory
✔ Copy Template Files
✔ Update AuthSettings
✔ Update Appconfig
✔ Update Dependencies
✔ Build Code
✔ Deploy Stack on AWS
The Api proto-api has been successfully deployed
Check swagger (using the new link provided in the terminal after deploy). See nothing has changed
Expected behavior
jsonsls would update the swagger and API with the new JSON data
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- MacOS, Node 14.9.0