是否要求将CLI部署到不同的环境? [英] ASK CLI to deploy to different environments?

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

问题描述

是否可以使用Alexa Skill Kit的 ASK CLI deploy 命令来生成例如部署了以下版本的应用程序的 debug 版本开发环境和部署到测试发行版版本$ c>环境?

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.

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

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