mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
caeebe0e1a
* Made the cluster variable visible in dashboards * Made the repo reusable with multiple EKS clusters * Relabled the input variable from create_grafana_data_source to create_prometheus_data_source
40 lines
1.2 KiB
Terraform
40 lines
1.2 KiB
Terraform
output "aws_region" {
|
|
description = "AWS Region"
|
|
value = var.aws_region
|
|
}
|
|
|
|
output "managed_prometheus_workspace_endpoint" {
|
|
description = "Amazon Managed Prometheus workspace endpoint"
|
|
value = local.amp_ws_endpoint
|
|
}
|
|
|
|
output "managed_prometheus_workspace_id" {
|
|
description = "Amazon Managed Prometheus workspace ID"
|
|
value = local.amp_ws_id
|
|
}
|
|
|
|
output "managed_prometheus_workspace_region" {
|
|
description = "Amazon Managed Prometheus workspace region"
|
|
value = local.amp_ws_region
|
|
}
|
|
|
|
output "managed_grafana_workspace_endpoint" {
|
|
description = "Amazon Managed Grafana workspace endpoint"
|
|
value = local.amg_ws_endpoint
|
|
}
|
|
|
|
output "managed_grafana_workspace_id" {
|
|
description = "Amazon Managed Grafana workspace ID"
|
|
value = local.amg_ws_id
|
|
}
|
|
|
|
output "grafana_dashboards_folder_id" {
|
|
description = "Grafana folder ID for automatic dashboards. Required by workload modules"
|
|
value = var.create_dashboard_folder ? grafana_folder.this[0].id : ""
|
|
}
|
|
|
|
output "grafana_prometheus_datasource_test" {
|
|
description = "Grafana save & test URL for Amazon Managed Prometheus workspace"
|
|
value = var.create_prometheus_data_source ? "${local.amg_ws_endpoint}/datasources/edit/${grafana_data_source.amp[0].uid}" : ""
|
|
}
|