flushed out userdata script adn added env vars #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
src/cw_auto_alarms.py
Took the following constants:
default_period = '5m'
default_evaluation_periods = '1'
default_statistic = 'Average'
Added unique env vars for each: ec2, lambda and rds
For instance in my shop, unless RDS CPU is 100% for over 90 minutes, do not care.
Flushed out and used /etc/os-release to make calls OS dependent instead of having to comment or not comment.
even if this is meant as an example to put in your own userdata, makes life easier when checking out this tool.
userdata_linux_advanced.sh
userdata_linux_basic.sh
userdata_linux_standard.sh
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.