Resource: aws_prometheus_alert_manager_definition

Manages an Amazon Managed Service for Prometheus (AMP) Alert Manager Definition

Example Usage

resource "aws_prometheus_workspace" "demo" {
}

resource "aws_prometheus_alert_manager_definition" "demo" {
  workspace_id = aws_prometheus_workspace.demo.id
  definition   = <<EOF
alertmanager_config: |
  route:
    receiver: 'default'
  receivers:
    - name: 'default'
EOF
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports no additional attributes.

Import

In Terraform v1.5.0 and later, use an import block to import the prometheus alert manager definition using the workspace identifier. For example:

import {
  to = aws_prometheus_alert_manager_definition.demo
  id = "ws-C6DCB907-F2D7-4D96-957B-66691F865D8B"
}

Using terraform import, import the prometheus alert manager definition using the workspace identifier. For example:

% terraform import aws_prometheus_alert_manager_definition.demo ws-C6DCB907-F2D7-4D96-957B-66691F865D8B