Is it possible to use Alexa Skill Kit's ASK CLI deploy
command to build, for example, a debug
version of the app that deploys a development
environment and a release
version of the app that deploys to a test
environment?
My team and I are trying to deploy the same skill to two different environments, so our testing team can do their thing in the test environments and development can do their thing in the development environment.
This will be a private skill so using http://developer.amazon.com separation of test and "prod" via publishing the application is not an option.
There are probably a lot of ways to accomplish this. Here are some that immediately come to mind:
- Pull your different settings from the environment or a separate file, for example a .env file.
- You could also use separate accounts for debug and release, and 'share' the common code between them.
- Do as you mention in your comment and use a bash (or npm) to configure as needed.
Personally, I like the npm approach a bit better, but have used bash successfully to do this also. You don't mention which language you are using for you Lambda. I'm working with Javascript, so npm is a good fit for me.
Note also that you can use the AWS CLI for handling your lambda in addition to the ASK CLI.
来源:https://stackoverflow.com/questions/49285995/ask-cli-to-deploy-to-different-environments