Apex is using terraform under the cover.
$ apex infra plan
$ apex infra apply
$ ./build.sh
$ apex deploy --env-file env.json
Where env.json
should look like this:
{
"password": "your-password",
"username": "your-username",
"dob": "your-date-of-birth"
}
To test if deployment was successful
$ apex invoke hlScrapper
$ apex logs
Start dynamodb local
$ docker run -d -p 8000:8000 dwmkerr/dynamodb
Run tests
$ npm test
Alexa lambda function requires Alexa Skills Kit trigger to be added. This need to be done manually on aws console.
In amazon developer console configure alexa skill
- Point to alexa lambda function
- Copy intent
{
"intents": [
{
"intent": "portfolio"
}
]
}
- Copy utterances, ie.
portfolio today
portfolio about today
portfolio about status
portfolio status