=============================
This module can be used to deploy an AWS Lambda function which is scheduled to check is there any resource not included in active reserved instances and send notification to slack
lambda_name
- Unique name for Lambda functionschedule_expression
- a valid rate or cron expressionwebhook_url
- url for sending check result to slack.slack_channel
- channel for sending check result to slack.region
- (optional) the region which wants to check reserved instances status.timeout
- (optional) the amount of time your Lambda Function has to run in seconds. Defaults to 30. See Limitsexclude_pattern
- (optional) exclude instance with name which matches this pattern
module "lambda_scheduled" {
source = "github.com/kirkchen/tf_aws_lambda_check_ri_with_slack_notification"
lambda_name = "lambda_reserved_instance_checker"
schedule_expression = "cron(0 6 * ? 3 *)"
webhook_url = "your_slack_webhook_url"
exclude_pattern = "(instance_a|instance_b)"
}
lambda_arn
- ARN for the created Lambda function
Created and maintained by Kirk Chen