Open Source Terraform modules to monitor AWS
Michael Wittig – 10 Mar 2020 (updated 08 Jul 2020)
Setting up monitoring on AWS is hard. AWS provides countless features and sources of events. Overlooking the important settings is easy. Monitoring Jump Starts help our customers to monitor all the relevant sources of their AWS infrastructure. Sources are CloudWatch Alarms, EventBridge Rules, or more service-specific features such as RDS Event Notifications.
So far, we used CloudFormation templates to deploy the Jump Starts. Today, I’m happy to announce that we start to support Terraform as well. Each Jump Start is a Terraform module published to the Terraform registry.
Ask marbot to help you with your monitoring setup, and you get all the details in your Slack window. In a Slack channel where marbot belongs to send a message like this:
@marbot set up EC2 monitoring for me
marbot responds with a wizard to configure AWS monitoring:
The following monitoring goals are supported at the moment:
- AWS basics
- Auto Scaling Group
- RDS cluster (Aurora)
- SQS queue
- EC2 instance
- Are you looking for something else? Let me know!
You can use Terraform modules like this:
- Create a new directory
Within the new directory, create a file
main.tf
with the following content:provider "aws" {}
module "marbot-monitoring-basic" {
source = "marbot-io/marbot-monitoring-basic/aws"
version = "0.2.0" # we recommend to pin the version
endpoint_id = "xyzu" # to get this value, select a Slack channel where marbot belongs to and send a message like this: "@marbot show me my endpoint id"
budget_threshold = 10 # in USD (optional)
}Run the following commands:
terraform init
terraform apply
The modules are open source (Apache 2.0) and hosted on GitHub.
Take your AWS monitoring to a new level! Chatbot for AWS Monitoring: Configure monitoring, receive alerts, solve incidents.