-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make locks expire after or at a user specified time #7
Comments
Would be nice if ...
1 minute CRON job? 1440 minutes a day ... scan, query for expiry time? |
If a TTL can trigger a lambda, it's possible that a webhook event could be emitted to notify that a lock has expired. It is possible to trigger lambdas on DynamoDB changes, hopefully the TTL feature can be picked up by that. Though reading the article, it looks like more thought may need to be put into this approach. Scan is a pretty expensive DynamoDB call. Depending on the size of your database, it can be a pretty read-intensive call. |
The DynamoDB TTL could trigger a lambda according to this and this . The scan could indeed get expensive! I'm not a DynamoDB expert but we might be able to make use of a secondary index on the expiry time so we could do queries on it. Hopefully there's a simple solution lurking somewhere 🧐 |
|
Hey @floydspace sounds like a great idea!
I've tried to keep the README.md and CONTRIBUTING.md up to date but it may not be entirely clear how to setup a local dev environment or deploy to a dev environment. If you find anything confusing please do ask me and feel free to update the docs. If you'd like a walkthrough of the project or discuss anything then I'm be happy to jump on a call. Join the Lockbot Slack Workspace if you'd like to chat. |
Great solution, but I think there is a limit of 100 rules per account which means with a single aws account, lockbot can have at max 100 resources |
This would be a good feature to have. Is there a plan to add it? We use the app and it is great but we do want a way to release locks automatically after certain default time. |
Could use DynamoDB TTL but it has limited time guarantees and wouldn't notify users.
The text was updated successfully, but these errors were encountered: