ASK CLI 部署到不同的环境? [英] ASK CLI to deploy to different environments?

查看:22
本文介绍了ASK CLI 部署到不同的环境?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 Alexa Skill Kit 的 ASK CLI deploy 命令来构建,例如,部署 development 环境和 debug 版本的应用程序部署到 test 环境的应用程序的 code>release 版本?

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.

这将是一项私人技能,因此使用 http://developer.amazon.com 分离测试和通过发布应用程序来生产"不是一种选择.

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:

  1. 从环境或单独的文件(例如 .env 文件)中提取不同的设置.
  2. 您还可以使用单独的帐户进行调试和发布,并在它们之间共享"公共代码.
  3. 按照您在评论中提到的那样做,并根据需要使用 bash(或 npm)进行配置.

就我个人而言,我更喜欢 npm 方法,但也成功地使用 bash 来做到这一点.您没有提及您为 Lambda 使用哪种语言.我正在使用 Javascript,因此 npm 非常适合我.

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.

另请注意,除了 ASK CLI 之外,您还可以使用 AWS CLI 来处理您的 lambda.

Note also that you can use the AWS CLI for handling your lambda in addition to the ASK CLI.

这篇关于ASK CLI 部署到不同的环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆