Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- miststlkr@htpc:~$ nvm install 8.11.1
- v8.11.1 is already installed.
- Now using node v8.11.1 (npm v5.6.0)
- miststlkr@htpc:~$ nvm use 8.11.1
- Now using node v8.11.1 (npm v5.6.0)
- miststlkr@htpc:~$ npm install -g lexigram-cli
- /home/miststlkr/.nvm/versions/node/v8.11.1/bin/lexigram -> /home/miststlkr/.nvm/versions/node/v8.11.1/lib/node_modules/lexigram-cli/dist/index.js
- + lexigram-cli@1.0.3
- added 1 package and updated 7 packages in 13.979s
- miststlkr@htpc:~$ lexigram login
- ? Please create a new profile or overwrite the existing profile.
- [dferruzzi] ** NULL **
- -------------------- Initialize CLI --------------------
- ? There is no AWS credential setup yet, do you want to continue the initialization? (Default: False) Yes
- Warning: Profile: "dferruzzi" will not be able to deploy lambda functions since no AWS credentials are set up.
- Switch to 'Login with Amazon' page...
- Tokens fetched and recorded in ask-cli config.
- Vendor ID set as M3TQETLBUD5CW8
- Profile [dferruzzi] initialized successfully.
- miststlkr@htpc:~$ lexigram init-config
- Config file already exists. Would you like to overwrite? [y/n]: y
- miststlkr@htpc:~$ lexigram init-skill kanzi
- Skill directory exists. Would you like to overwrite? [y/n]: y
- ? Initialize kanzi skill
- miststlkr@htpc:~$ nano kodi.config
- I changed only the following:
- address = miststlkr.dyndns.org // the dyndns address of the Kodi instance want to control
- port = 2080 // the port that my router forwards to the Kodi instance to get to the web interface
- username = kodi // login info for Kodi's web interface
- password =
- timezone = US/Pacific
- miststlkr@htpc:~$ lexigram generate-function kanzi
- ? Check config file
- ? Validate config file
- ? Check skill directory
- ? Remove old Lambda function code
- ? Download latest source code
- ? Extract source code
- ? Copy config file
- ? Create deployment zip file
- File is ready. Please upload 'kanzi-lambda-upload.zip' to AWS Lambda.
- Using Lambda
- Region is Oregon
- Deleted all previous functions and roles
- New Function
- exactly as in screenshot
- Added Alexa Skill set
- disabled skill id verification
- Changed RAM and timeout
- uplodaed zip
- changed handler title
- hit save
- ARN - arn:aws:lambda:us-west-2:250493968031:function:kanzi
- miststlkr@htpc:~$ lexigram deploy kanzi
- # Check config file
- # Validate config file
- # Check skill directory
- # Remove old repo code
- # Download latest source code
- # Extract source code
- # Extract source code - Part 2
- # Update skill data
- # Update slot values
- # Deploy skill
- # Deploying skill information.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement