Closed evaneaston closed 6 years ago
Thank you for your suggestion.
To facilitate development, it would be nice to store the token in a different location so it survives lambda (re)deploys.
I think so too. I would like to think about a location to save the tokens. Do you have any ideas? @Evaneaston
Fixed by #2
I don't have any suggestions. Putting it in a dot file like you did seems fine. If you ended up needing to manage more files a new dot directory would make sense.
Once you run
sls alexa auth
it putsalexa-skills-token.json
into the.serverless
directory. Then if you have a lambda and try to deploy it, the aws provider code runs the aws:common:cleanupTempDir hook which removes the.serverless
directory andalexa-skills-token.json
along with it.To facilitate development, it would be nice to store the token in a different location so it survives lambda (re)deploys.