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
}
}
}
Name | Version |
---|---|
terraform | >= 0.13.1 |
aws | >= 3.74 |
Name | Version |
---|---|
aws | 4.26.0 |
No modules.
Name | Type |
---|---|
aws_prometheus_alert_manager_definition.this | resource |
aws_prometheus_rule_group_namespace.this | resource |
aws_prometheus_workspace.this | resource |
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 |
Name | Description |
---|---|
arn | Amazon Resource Name (ARN) of the workspace |
id | Identifier of the workspace |
prometheus_endpoint | Prometheus endpoint for this workspace |