# Unable to add s3 alarm using the serverless-plugin-aws-alerts module in serverless

**URL:** <https://forum.serverless.com/t/unable-to-add-s3-alarm-using-the-serverless-plugin-aws-alerts-module-in-serverless/12764>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [October 5, 2020, 5:06pm UTC](https://forum.serverless.com/t/unable-to-add-s3-alarm-using-the-serverless-plugin-aws-alerts-module-in-serverless/12764 "2020-10-05T17:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agrawaltarun](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/agrawaltarun/32/4600_2.png) [@agrawaltarun](https://forum.serverless.com/u/agrawaltarun)\
**Post date:** [October 5, 2020, 5:06pm UTC](https://forum.serverless.com/t/unable-to-add-s3-alarm-using-the-serverless-plugin-aws-alerts-module-in-serverless/12764/1 "2020-10-05T17:06:07Z")

</div>

Hi,  
I am trying to setup alarm on the s3 metrics using the serverless-plugin-aws-alerts module. Thought I am able to setup the Lambda. alerts ( see snippet below) . Is the s3 or Cloudfront Cloudwatch alarms can be configured using the serverless-plugin-aws-alerts module ?

1. There is no error message thrown while running ( even post enabling debug logs found nothing)
2. In the resultant cloudformation applied from serverless the Cloudwatch alarm section for s3 is missing.

criticalFunctionErrors:  
namespace: ‘AWS/Lambda’  
metric: Errors  
threshold: 20  
statistic: Sum  
period: 60  
evaluationPeriods: 10  
TreatMissingData: ignore # This is not evaluated correctly by the aws-alerts plugin as of ver 1.6.1  
comparisonOperator: GreaterThanOrEqualToThreshold  
okActions:  
- critical  
alarmActions:  
- critical  
storageErrors:  
namespace: ‘AWS/S3’  
metric: NumberOfObjects  
threshold: 20  
statistic: Sum  
period: 1440  
evaluationPeriods: 1  
TreatMissingData: ignore # This is not evaluated correctly by the aws-alerts plugin as of ver 1.6.1  
comparisonOperator: GreaterThanOrEqualToThreshold  
okActions:  
- critical  
alarmActions:  
- critical

Thanks  
Tarun
