ASK CLI to deploy to different environments?

笑着哭i 提交于 2019-12-05 12:14:13

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.

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