Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/louis-fiori/terraform-aws-cloudwatch-logs-enhanced-alarms-notifications

📣 Terraform module for smart alerts using AWS Lambda and Chatbot
https://github.com/louis-fiori/terraform-aws-cloudwatch-logs-enhanced-alarms-notifications

aws aws-chatbot aws-cloudwatch-logs aws-lambda terraform-aws terraform-module

Last synced: 1 day ago
JSON representation

📣 Terraform module for smart alerts using AWS Lambda and Chatbot

Awesome Lists containing this project

README

        

## 📝 Medium Article
For more information about this module, check out this article: [https://medium.com/@louis-fiori/cloudwatch-logs-enhanced-alerts-a50ea08d0845](https://medium.com/@louis-fiori/cloudwatch-logs-enhanced-alerts-a50ea08d0845)

## 🔗 Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.4.5 |
| [aws](#requirement\_aws) | >= 4.0.0 |
| [awscc](#requirement\_awscc) | >= 0.2 |

## ➡️ Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [account\_id](#input\_account\_id) | AWS account ID | `string` | n/a | yes |
| [lambda\_code\_path](#input\_lambda\_code\_path) | Path of the Lambda function code | `string` | `"logs_alerts.py"` | no |
| [lambda\_environment\_variables](#input\_lambda\_environment\_variables) | A map that defines environment variables for the Lambda Function. | `map(string)` | `{}` | no |
| [lambda\_handler](#input\_lambda\_handler) | Handler for the Lambda | `string` | `"logs_alerts.lambda_handler"` | no |
| [lambda\_runtime](#input\_lambda\_runtime) | Runtime for the Lambda | `string` | `"python3.8"` | no |
| [name](#input\_name) | Name for the ressources | `string` | n/a | yes |
| [region](#input\_region) | AWS region (where to deploy everything) | `string` | n/a | yes |
| [slack\_settings](#input\_slack\_settings) | Slack channel ID and workplace ID |

object({
slack_channel_id : string
slack_workspace_id : string
})
| `null` | no |
| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of security group IDs when the function should run in a VPC | `list(string)` | `null` | no |
| [vpc\_subnet\_ids](#input\_vpc\_subnet\_ids) | List of subnet IDs when the function should run in a VPC | `list(string)` | `null` | no |

## ⬅️ Outputs

| Name | Description |
|------|-------------|
| [lambda\_arn](#output\_lambda\_arn) | ARN of the Lambda function (use it with CloudWatch Logs Subscription Filter) |
| [sns\_topic\_arn](#output\_sns\_topic\_arn) | ARN of the SNS topic (if you need to setup other notifications than Slack) |