To write a tweet to the console, open a PowerShell window in the repo and type...
node .\consoleRunner-local.js
To send a new tweet to twitter, open a PowerShell window in the repo and type...
node .\consoleRunner-twitter.js
To upload a new version to AWS Lambda...
- Add all *.js files, *.json files and the node_modules folder to a single zipped folder
- Open the AWS Management Console in browser and navigate to the Lambda service in your region (e.g. Ohio)
- Find the Lambda running this bot
- Scroll down to the Function Code section
- Under 'Code Entry Type' select 'Upload a Zip File'
- Upload the zipped code
- At the top of the Lambda view, click 'Test' to check that the tweet is sent using the new version
- At the top of the Lambda view, click 'Actions' -> 'Publish new Version'
- Enter a brief description of your new version