mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
71b6f352bf
* Managed Grafana Workspace with Identity Centre Users (#83) * update kuberenetes and instance type * initial setup of managed grafana workspace and identity centre identities * cleanup * run precommit * output grafana workspace ID * add identity store id variable * remove API key * update outputs naming convention as per terraform guidelines * update docs and add versions * update variables type * update naming conventions * add managed policy arn for querying promethues * update readme * update workshop references to this * add role arn type * cleanup and simplification * remove workshop --------- Co-authored-by: charlie keegan <chakeega@amazon.com> Co-authored-by: Rodrigue Koffi <bonclay7@users.noreply.github.com> * Rename example * Update grafana example and base module references * Update example's reference * Cleanup and docs ref * Add docs * Update docs * TODO: add link after merge * Update managed-grafana.md --------- Co-authored-by: Charlie Keegan <91210223+charliekeeegan@users.noreply.github.com> Co-authored-by: charlie keegan <chakeega@amazon.com> Co-authored-by: Mark Beacom <7315957+mbeacom@users.noreply.github.com>
29 lines
757 B
Terraform
29 lines
757 B
Terraform
provider "aws" {
|
|
region = local.region
|
|
}
|
|
|
|
provider "grafana" {
|
|
url = local.amg_ws_endpoint
|
|
auth = var.grafana_api_key
|
|
}
|
|
|
|
data "aws_grafana_workspace" "this" {
|
|
workspace_id = var.managed_grafana_workspace_id
|
|
}
|
|
|
|
locals {
|
|
region = var.aws_region
|
|
amg_ws_endpoint = "https://${data.aws_grafana_workspace.this.endpoint}"
|
|
}
|
|
|
|
resource "grafana_folder" "this" {
|
|
title = "Amazon Managed Prometheus monitoring dashboards"
|
|
}
|
|
|
|
module "managed_prometheus_monitoring" {
|
|
source = "../../modules/managed-prometheus-monitoring"
|
|
dashboards_folder_id = resource.grafana_folder.this.id
|
|
aws_region = local.region
|
|
managed_prometheus_workspace_ids = var.managed_prometheus_workspace_ids
|
|
}
|