generated from appvia/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.tf
More file actions
28 lines (24 loc) · 914 Bytes
/
prometheus.tf
File metadata and controls
28 lines (24 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
## AWS Managed Prometheus
#
## Provision the AWS Managed Prometheus workspace
module "amazon_managed_service_prometheus_pod_identity" {
count = var.aws_prometheus.enable ? 1 : 0
source = "terraform-aws-modules/eks-pod-identity/aws"
version = "2.7.0"
amazon_managed_service_prometheus_policy_name = "${local.name}-aws-prometheus"
amazon_managed_service_prometheus_workspace_arns = var.aws_prometheus.workspaces
attach_amazon_managed_service_prometheus_policy = true
tags = local.tags
## Default association for the AWS Managed Prometheus pod identity
association_defaults = {
namespace = var.aws_prometheus.namespace
service_account = var.aws_prometheus.service_account
}
## Associations for the AWS Managed Prometheus pod identity
associations = {
addon = {
cluster_name = module.eks.cluster_name
}
}
}