Skip to content

tf-cloud-modules/terraform-aws-amp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Managed Service for Prometheus (AMP) Terraform module

Terraform module which creates AWS Managed Service for Prometheus (AMP) resources.

module "amp" {
  source  = "tf-cloud-modules/amp/aws"
  alias   = "test"

  create_alert_manager = true
  alert_manager_definition = <<-EOT
  alertmanager_config: |
    route:
      receiver: 'default'
    receivers:
      - name: 'default'
  EOT
  rule_group_namespaces = {
    group = {
      name = "rule"
      data = <<-EOT
        groups:
          - name: test
            rules:
            - alert: PrometheusTargetMissing
               expr: up == 0
               for: 5m
        EOT
    }
  }
}

Requirements

Name Version
terraform >= 0.13.1
aws >= 3.74

Providers

Name Version
aws 4.26.0

Modules

No modules.

Resources

Name Type
aws_prometheus_alert_manager_definition.this resource
aws_prometheus_rule_group_namespace.this resource
aws_prometheus_workspace.this resource

Inputs

Name Description Type Default Required
alert_manager_definition The alert manager definition that you want to be applied. string `"alertmanager_config: \n route:\n receiver: 'default'\n receivers:\n - name: 'default'\n"`
alias The alias of the prometheus workspace. any n/a yes
create Controls if resources should be created. bool true no
create_alert_manager Determines whether alert_manager resources will be created. bool false no
rule_group_namespaces A map of one or more rule group namespace definitions. map(any) {} no
tags A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
arn Amazon Resource Name (ARN) of the workspace
id Identifier of the workspace
prometheus_endpoint Prometheus endpoint for this workspace

About

AWS Managed Service for Prometheus (AMP) Terraform module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages