Limit Monitor on AWS
AWS Limit Monitor

Appendix B: Customization

Change the Lambda Interval

By default, an AWS Lambda function runs once every 24 hours to refresh the AWS Trusted Advisor Service Limits checks. But, you can change how often the Lambda function is invoked by changing the mapping in the AWS CloudFormation template. Note that if you set the Lambda function to run more than once every 12 hours, you may experience a delay in your events arriving in Amazon DynamoDB.

To change the interval, modify the following mapping in the AWS CloudFormation template:

RefreshRate: CronSchedule: Default: rate(1 day)

For more information about acceptable rate expressions, see Rate Expressions in the Amazon CloudWatch Events User Guide.

Change the Monitored Services

By default, this solution checks all service limits that AWS Trusted Advisor checks. To specify which service limits you want to check, modify the following AWS CloudFormation template mapping.

EventsMap: Checks: Services: '"AutoScaling","CloudFormation","EBS","EC2","ELB","IAM","Kinesis","RDS","SES","VPC"'

Note that only the services you specify in the primary account will be checked in the secondary account(s). For example, if you specify only Amazon Elastic Compute Cloud (Amazon EC2) in your primary account, and Amazon EC2 and Amazon Elastic Block Store (Amazon EBS) in your secondary account, you will not receive status events for Amazon EBS from your secondary account because you have not specified Amazon EBS in your primary account.

If you specify Amazon EC2 and Amazon EBS in the primary account, and only Amazon EC2 in the secondary account, you will not receive status events for Amazon EBS from the secondary account because you have not specified Amazon EBS in your secondary account.