Automatically create and configure Amazon CloudWatch alarms for EC2 instances, RDS, and AWS Lambda using tags for standard and custom CloudWatch Metrics.
Encountered an issue where alarms for Memory % Committed Bytes In Use was not created. To troubleshoot this, I added exception handling for the section of code causing the issue. The exception raised was list index out of range.
Fix: There was an extra value of instance in the key for Memory % Committed Bytes In Use. Removing it fixes the issue and alarms are created successfully
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: Potentially relates to #17
Description of changes:
Encountered an issue where alarms for
Memory % Committed Bytes In Use
was not created. To troubleshoot this, I added exception handling for the section of code causing the issue. The exception raised waslist index out of range
.Fix: There was an extra value of
instance
in the key forMemory % Committed Bytes In Use
. Removing it fixes the issue and alarms are created successfullyBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.