Open Source Terraform modules to monitor AWS

Michael Wittig – 10 Mar 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.

Monitoring Jump Starts

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 wizzard to configure AWS monitoring:

Monitoring Jump Start in Slack

The following monitoring goals are supported at the moment:

You can use Terraform modules like this:

  1. Create a new directory
  2. 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)
    }
  3. Run the following commands:

    terraform init
    terraform apply

The modules are open source (Apache 2.0) and hosted on GitHub.

Michael Wittig

Michael Wittig

Consultant focusing on Amazon Web Services (AWS). Entrepreneur building marbot.io. Author of Amazon Web Services in Action, Rapid Docker on AWS, and cloudonaut.io.

You can contact me via Email, Twitter, and LinkedIn.

Published on

marbot teaser

AWS monitoring & alerting in Slack

marbot takes care of your Amazon Web Services (AWS) monitoring setup. You receive and close all relevant alerts via Slack. marbot integrates with CloudWatch, Elastic Beanstalk, EC2, RDS, any many more.

Slack icon
Add to Slack