Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASK CLI to deploy to different environments?

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.

like image 931
Cole Avatar asked Oct 28 '22 16:10

Cole


1 Answers

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.

like image 117
Ron Lisle Avatar answered Dec 09 '22 16:12

Ron Lisle