-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Use aws-cdk to deploy an AWS Lambda based server-less version of the app #5
Commits on Dec 14, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d3fa248 - Browse repository at this point
Copy the full SHA d3fa248View commit details -
And run `npm install` to generate `package-lock.json`.
Configuration menu - View commit details
-
Copy full SHA for b8dfe11 - Browse repository at this point
Copy the full SHA b8dfe11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cbe3f0 - Browse repository at this point
Copy the full SHA 0cbe3f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51ecb74 - Browse repository at this point
Copy the full SHA 51ecb74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 223aa99 - Browse repository at this point
Copy the full SHA 223aa99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53a7f9c - Browse repository at this point
Copy the full SHA 53a7f9cView commit details
Commits on Dec 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for eb61865 - Browse repository at this point
Copy the full SHA eb61865View commit details -
Add default constructor to stack class
This is where I'll add custom code to define the AWS resources which make up the stack.
Configuration menu - View commit details
-
Copy full SHA for 68540aa - Browse repository at this point
Copy the full SHA 68540aaView commit details -
Create an EventRule to fire at daily at 2am
This rule currently has no target and so won't do anything, but it's a small step on the way.
Configuration menu - View commit details
-
Copy full SHA for a7b25e0 - Browse repository at this point
Copy the full SHA a7b25e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cabad2 - Browse repository at this point
Copy the full SHA 2cabad2View commit details -
Add empty Ruby lambda function as target of scheduled rule
Note that Ruby lambda functions cannot currently be "inline"; they have to be in a separate file.
Configuration menu - View commit details
-
Copy full SHA for fd3e64d - Browse repository at this point
Copy the full SHA fd3e64dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ea4cd7 - Browse repository at this point
Copy the full SHA 0ea4cd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c33a8c - Browse repository at this point
Copy the full SHA 0c33a8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 182f3f8 - Browse repository at this point
Copy the full SHA 182f3f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c78db03 - Browse repository at this point
Copy the full SHA c78db03View commit details -
Document obtaining Trello API key & token and print in lambda function
Note this is closely based on the original instructions [1]. [1]: https://github.com/freerange/trello_backup/blob/a99bacf2f663c899a76947dd91810c6ee353d429/README.md#generatingstoring-the-tokens-you-need-to-use-this-script
Configuration menu - View commit details
-
Copy full SHA for 1e42cf7 - Browse repository at this point
Copy the full SHA 1e42cf7View commit details -
Use trello gem to print name of first board
Note that unfortunately the trello gem currently (rather unnecessarily) has an indirect dependency on the unf gem which has native extensions. When I was trying this previously, I thought I ran into problems because the extensions were being built on my local machine using Mac OSX (x86_64-darwin-17), but were being deployed and run in an AWS Lambda function which is an x86_64-linux platform. Previously I had used Docker to build the extensions for the correct platform, however, when I just tried deploying and running the function as it stands (with Mac OSX-build extensions), it seemed to work OK, so maybe the whole Docker thing was unnecessary!
Configuration menu - View commit details
-
Copy full SHA for 52b61f1 - Browse repository at this point
Copy the full SHA 52b61f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23f6a40 - Browse repository at this point
Copy the full SHA 23f6a40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03513a1 - Browse repository at this point
Copy the full SHA 03513a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a5b273 - Browse repository at this point
Copy the full SHA 1a5b273View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85b71c9 - Browse repository at this point
Copy the full SHA 85b71c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25701aa - Browse repository at this point
Copy the full SHA 25701aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02f10ab - Browse repository at this point
Copy the full SHA 02f10abView commit details -
Write Trello board data to S3 bucket
I've chosen to use the board ID rather than a normalized version of the board name for the S3 object key, because this is a lot less likely to change over time. There's no need to include a timestamp in the S3 object key, because the S3 bucket has versioning enabled.
Configuration menu - View commit details
-
Copy full SHA for 2e6e8c9 - Browse repository at this point
Copy the full SHA 2e6e8c9View commit details
Commits on Dec 23, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 03b02ea - Browse repository at this point
Copy the full SHA 03b02eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b30f73 - Browse repository at this point
Copy the full SHA 8b30f73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36a3f96 - Browse repository at this point
Copy the full SHA 36a3f96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bee932 - Browse repository at this point
Copy the full SHA 7bee932View commit details -
Configuration menu - View commit details
-
Copy full SHA for 967a288 - Browse repository at this point
Copy the full SHA 967a288View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d0ded5 - Browse repository at this point
Copy the full SHA 8d0ded5View commit details -
Email notification for errors in lamda functions
I've confirmed that even a single exception from one of the lambda functions will trigger an alarm email notification.
Configuration menu - View commit details
-
Copy full SHA for 4ec16c2 - Browse repository at this point
Copy the full SHA 4ec16c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab877f4 - Browse repository at this point
Copy the full SHA ab877f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9705993 - Browse repository at this point
Copy the full SHA 9705993View commit details -
Move bucket name env var up into constructor
This means all the env vars are obtained at the same level.
Configuration menu - View commit details
-
Copy full SHA for 19e9257 - Browse repository at this point
Copy the full SHA 19e9257View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae0e431 - Browse repository at this point
Copy the full SHA ae0e431View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1ca055 - Browse repository at this point
Copy the full SHA b1ca055View commit details -
Install bundled gems from scratch
To minimize the size of the zip file uploaded to AWS.
Configuration menu - View commit details
-
Copy full SHA for 34f7e65 - Browse repository at this point
Copy the full SHA 34f7e65View commit details -
Avoid using ruby-trello gem to reduce dependencies
And reduce the size of the zip file uploaded to AWS.
Configuration menu - View commit details
-
Copy full SHA for 9693ccd - Browse repository at this point
Copy the full SHA 9693ccdView commit details -
Use Net::HTTP vs addressable & rest-client gems to reduce dependencies
And reduce the size of the zip file uploaded to AWS.
Configuration menu - View commit details
-
Copy full SHA for ff86d0c - Browse repository at this point
Copy the full SHA ff86d0cView commit details
Commits on Dec 24, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 8b5a4e7 - Browse repository at this point
Copy the full SHA 8b5a4e7View commit details -
Add missing labels parameter when downloading board JSON
I noticed this was missing when I was comparing this project with the `trello-full-backup` Python package [1]. [1]: https://pypi.org/project/trello-full-backup/
Configuration menu - View commit details
-
Copy full SHA for dd6e01b - Browse repository at this point
Copy the full SHA dd6e01bView commit details -
Re-order board query parameters
Move key & token to beginning of list and order the remaining keys alphabetically.
Configuration menu - View commit details
-
Copy full SHA for 41ccd14 - Browse repository at this point
Copy the full SHA 41ccd14View commit details
Commits on Dec 28, 2018
-
Restrict fields returned from Trello API boards endpoint
This should hopefully speed up the API response time.
Configuration menu - View commit details
-
Copy full SHA for 9f20085 - Browse repository at this point
Copy the full SHA 9f20085View commit details
Commits on Dec 29, 2018
-
Configuration menu - View commit details
-
Copy full SHA for e218ae4 - Browse repository at this point
Copy the full SHA e218ae4View commit details -
Rename S3 bucket name env var to include "S3"
To make its purpose clearer.
Configuration menu - View commit details
-
Copy full SHA for a7c196f - Browse repository at this point
Copy the full SHA a7c196fView commit details -
Rename alarm topic to monitoring topic
I'm planning to use this topic for monitoring as well as alarms.
Configuration menu - View commit details
-
Copy full SHA for 1c1a0ff - Browse repository at this point
Copy the full SHA 1c1a0ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for d552bf6 - Browse repository at this point
Copy the full SHA d552bf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b63e324 - Browse repository at this point
Copy the full SHA b63e324View commit details -
Rename backupTrelloBoardTopic -> backupBoardTopic
No need to include "Trello" in constant name.
Configuration menu - View commit details
-
Copy full SHA for df0d545 - Browse repository at this point
Copy the full SHA df0d545View commit details -
Rename enumerateTrelloBoardsFunction -> enumerateBoardsFunction
No need to repeat "Trello" in constant/function name.
Configuration menu - View commit details
-
Copy full SHA for 5145032 - Browse repository at this point
Copy the full SHA 5145032View commit details -
Rename backupTrelloBoardFunction -> backupBoardFunction
No need to repeat "Trello" in constant/function name.
Configuration menu - View commit details
-
Copy full SHA for 27b6139 - Browse repository at this point
Copy the full SHA 27b6139View commit details -
Rename trelloBoardBackupsBucket -> boardBackupsBucket
No need to repeat "Trello" in constant/function name.
Configuration menu - View commit details
-
Copy full SHA for 5901917 - Browse repository at this point
Copy the full SHA 5901917View commit details -
Change env var prefix to match project name
TRELLO_BOARD_BACKUPS -> TRELLO_BACKUP.
Configuration menu - View commit details
-
Copy full SHA for ab8c11a - Browse repository at this point
Copy the full SHA ab8c11aView commit details -
Use project prefix even for dynamically generated env var
BACKUP_TRELLO_BOARD_TOPIC_ARN -> TRELLO_BACKUP_BACKUP_BOARD_TOPIC_ARN. This makes the code more consistent.
Configuration menu - View commit details
-
Copy full SHA for 65cea17 - Browse repository at this point
Copy the full SHA 65cea17View commit details -
Rename schedule expression env var
I want to introduce another schedule expression and this change which makes the name more specific will make that easier.
Configuration menu - View commit details
-
Copy full SHA for 7564a40 - Browse repository at this point
Copy the full SHA 7564a40View commit details -
Inline schedule function and use more specific naming
Again this will make it easier to add another schedule expression rule.
Configuration menu - View commit details
-
Copy full SHA for 71327ee - Browse repository at this point
Copy the full SHA 71327eeView commit details -
Sends an email indicating whether the backup of all boards was successful or not.
Configuration menu - View commit details
-
Copy full SHA for d634b0d - Browse repository at this point
Copy the full SHA d634b0dView commit details