Skip to content
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

Better monitoring + testing for Cost Watcher Lambda function #12

Open
3 of 6 tasks
hcho3 opened this issue Jul 22, 2020 · 0 comments
Open
3 of 6 tasks

Better monitoring + testing for Cost Watcher Lambda function #12

hcho3 opened this issue Jul 22, 2020 · 0 comments

Comments

@hcho3
Copy link
Owner

hcho3 commented Jul 22, 2020

The Cost Watcher Lambda function currently lacks any unit tests. The function is already 262 lines long.

  • Monitor number of successful and unsuccessful function calls. This is done in CloudWatch.
  • Keep logs of all function executions. Again, CloudWatch.
  • Set up automatic e-mail alarm for any failures. I've set up a CloudWatch Alarm and put it my e-mail there.
  • Set up mock testing: Does each component function behave in expected ways?
  • Add more assertions to enforce invariants and pre- / post-conditions.
  • Consider fault injection testing.
@hcho3 hcho3 changed the title Better monitoring testing for Cost Watcher Lambda function Better monitoring + testing for Cost Watcher Lambda function Jul 22, 2020
@hcho3 hcho3 pinned this issue Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant