You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to add a tag to a lambda function so that alarms will be created for the lambda function, the alarms are never created. Upon further investigation this error shows up in the cloudwatch logs.
[ERROR] TypeError: create_alarm() takes 9 positional arguments but 10 were given
Traceback (most recent call last):
File "/var/task/cw_auto_alarms.py", line 155, in lambda_handler
process_lambda_alarms(function, tags, create_alarm_tag, default_alarms, sns_topic_arn, alarm_separator, alarm_identifier)
File "/var/task/actions.py", line 112, in process_lambda_alarms
create_alarm(AlarmName, MetricName, ComparisonOperator, Period, tag['Value'], Statistic, Namespace,
The solution works perfectly fine with EC2 Instances however adding the tag on lambda functions does not seem to work. Is anyone able to use this solution to add alarms to lambda functions as well?
The text was updated successfully, but these errors were encountered:
I reached out to @knizami and added the tag with the key Create_Auto_Alarms to the lambda in question. The key does not need any value. This worked for me. I am not sure if that was intended to convey by the README or I was mistaken with the language.
Hello,
When trying to add a tag to a lambda function so that alarms will be created for the lambda function, the alarms are never created. Upon further investigation this error shows up in the cloudwatch logs.
The solution works perfectly fine with EC2 Instances however adding the tag on lambda functions does not seem to work. Is anyone able to use this solution to add alarms to lambda functions as well?
The text was updated successfully, but these errors were encountered: