Git Product home page Git Product logo

aws-ec2-health-check's Introduction

Create health check alarm for EC2

License Tests Checkov Commit Release

This terraform module will deploy the following services:

  • CloudWatch Alarm

Usage Instructions

Example

module "ec2_system_health_check" {
  source = "github.com/terrablocks/aws-ec2-health-check.git"

  alarm_name  = "web-server-system-health-check"
  instance_id = "i-xxxxxxxx"
}

module "ec2_instance_health_check" {
  source = "github.com/terrablocks/aws-ec2-health-check.git"

  alarm_type  = "instance"
  alarm_name  = "web-server-instance-health-check"
  instance_id = "i-xxxxxxxx"
}

Requirements

Name Version
terraform >= 0.13
aws >= 3.37.0

Inputs

Name Description Type Default Required
alarm_type Type of EC2 health alarm to create. Possible Values: system or instance string "system" no
alarm_name Name of cloudwatch alarm string n/a yes
instance_id ID of EC2 instance which needs to be monitored string n/a yes
period The period in seconds over which the result is based on string "60" no
description The description for the alarm string "This alarms monitors ec2 instance system health check" no
alarm_actions List of ARNs pointing to specific actions that should be invoked when a threshold is breached. Refer PutMetricAlarm API for action ARN. Note: Default action will be set to recover for system health check alarm and reboot for instance health check alarm list(string) [] no
insufficient_data_actions List of ARNs pointing to specific actions that should be invoked when an alarm is in Insufficient Data status list(string) [] no
tags Map of key-value pair to associate with alarm map(string) {} no

Outputs

Name Description
alarm_name Name of alarm created
alarm_arn ARN of alarm created

aws-ec2-health-check's People

Contributors

paliwalvimal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.