1.0.11 • Published 5 years ago

lex-deploy v1.0.11

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

Lex-deploy

The tool for management of Lex bot deploy, publish and export via command line interface using Lex Platform model. Store all your Lex configuration in a single json file and deploy easily in CI.

Installation

npm install lex-deploy

API

Commands

  • export - exports published version
  • deploy - updates your bot aws schema and publishes it to alias if it is specified
  • publish - publishes bot to alias with specified version

For options use help command

Examples

Exports bot NameOfTheBot of version 2 to Lex model to file NameOfTheBot_Export.json

lex-deploy export --botName NameOfTheBot --botVersion 2 --exportType LEX --exportFilePath ./NameOfTheBot_Export.json

Publishes NameOfTheBot version 2 to alias prod

lex-deploy publish --botName NameOfTheBot --botVersion 2 --alias prod

Deploys bot with schema(NameOfTheBot_Export.json) to alias prod

lex-deploy deploy --schemaPath ./NameOfTheBot_Export.json --alias prod

ENV variables

POLL_TIMEOUT - the delay to poll the aws lex building service for status. Default 3000ms. If decrease - aws limit might be reached.

AWS setup

To setup aws variables please use environment variables defined by aws

###IAM lambda:AddPermission policy is required to add lambda permission to be invoked by lex

lex:* policy is required to call lex building service

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago