Resource: aws_internetmonitor_monitor

Provides a Internet Monitor Monitor resource.

Example Usage

resource "aws_internetmonitor_monitor" "example" {
  monitor_name = "exmple"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Health Events Config

Defines the health event threshold percentages, for performance score and availability score. Amazon CloudWatch Internet Monitor creates a health event when there's an internet issue that affects your application end users where a health score percentage is at or below a set threshold. If you don't set a health event threshold, the default value is 95%.

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Internet Monitor Monitors using the monitor_name. For example:

import {
  to = aws_internetmonitor_monitor.some
  id = "some-monitor"
}

Using terraform import, import Internet Monitor Monitors using the monitor_name. For example:

% terraform import aws_internetmonitor_monitor.some some-monitor