From 7b32faa55e1c43223ebd2f4790de4af7871fecf4 Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Wed, 6 Nov 2024 13:23:32 +0200 Subject: [PATCH] jupyter-health: enable and configure aws-ce-grafana backend --- config/clusters/jupyter-health/support.values.yaml | 8 ++++++++ terraform/aws/projects/jupyter-health.tfvars | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/clusters/jupyter-health/support.values.yaml b/config/clusters/jupyter-health/support.values.yaml index 113d2146f7..4fa7df1103 100644 --- a/config/clusters/jupyter-health/support.values.yaml +++ b/config/clusters/jupyter-health/support.values.yaml @@ -27,6 +27,14 @@ grafana: hosts: - grafana.jupyter-health.2i2c.cloud +aws-ce-grafana-backend: + enabled: true + envBasedConfig: + clusterName: jupyter-health + serviceAccount: + annotations: + eks.amazonaws.com/role-arn: arn:aws:iam::211125465508:role/aws_ce_grafana_backend_iam_role + cluster-autoscaler: enabled: true autoDiscovery: diff --git a/terraform/aws/projects/jupyter-health.tfvars b/terraform/aws/projects/jupyter-health.tfvars index 43b0246d33..851ae36211 100644 --- a/terraform/aws/projects/jupyter-health.tfvars +++ b/terraform/aws/projects/jupyter-health.tfvars @@ -2,12 +2,16 @@ region = "us-east-2" cluster_name = "jupyter-health" cluster_nodes_location = "us-east-2a" +enable_aws_ce_grafana_backend_iam = true + user_buckets = { "scratch-staging" : { - "delete_after" : 7 + "delete_after" : 7, + "tags" : { "2i2c:hub-name" : "staging" }, }, "scratch" : { - "delete_after" : 7 + "delete_after" : 7, + "tags" : { "2i2c:hub-name" : "prod" }, }, }