ASK CLI to deploy to different environments?

我是研究僧i 提交于 2019-12-10 09:36:40

问题


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.


回答1:


There are probably a lot of ways to accomplish this. Here are some that immediately come to mind:

  1. Pull your different settings from the environment or a separate file, for example a .env file.
  2. You could also use separate accounts for debug and release, and 'share' the common code between them.
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!