Automatically books a SCSS glass room in TCD based on the validRooms and dates objects in properties.json.
- Change the
usersobjects in properties.json accordingly, using your TCD usernames. - Set password environment variables for the process based on these usernames e.g. if the username is john, you need an environment variable
PASSWORD_JOHNwith his password.
Run: npm run dev to test locally.
Run: npm run push to push to AWS Lambda (provided aws credentials are setup).
Handy command for AWS Lambda: zip -r bookGlassRoom.zip . -x *.git* && aws lambda update-function-code --function-name bookGlassRoom --zip-file fileb://./bookGlassRoom.zip
You need to change the --function-name parameter if your lambda function name does not match.