From c7fd14e9f32bb5a45d991ce74e46c933fbedc93c Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Wed, 6 Nov 2024 13:04:03 +0200 Subject: [PATCH] Enable and configure aws-ce-grafana backend --- config/clusters/gridsst/support.values.yaml | 8 ++++++++ terraform/aws/projects/gridsst.tfvars | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/clusters/gridsst/support.values.yaml b/config/clusters/gridsst/support.values.yaml index 10fac3132..e5e5fb5fb 100644 --- a/config/clusters/gridsst/support.values.yaml +++ b/config/clusters/gridsst/support.values.yaml @@ -32,3 +32,11 @@ prometheus: - secretName: prometheus-tls hosts: - prometheus.gridsst.2i2c.cloud + +aws-ce-grafana-backend: + enabled: true + envBasedConfig: + clusterName: gridsst + serviceAccount: + annotations: + eks.amazonaws.com/role-arn: arn:aws:iam::993998403439:role/aws_ce_grafana_backend_iam_role diff --git a/terraform/aws/projects/gridsst.tfvars b/terraform/aws/projects/gridsst.tfvars index ea6721acc..f65534370 100644 --- a/terraform/aws/projects/gridsst.tfvars +++ b/terraform/aws/projects/gridsst.tfvars @@ -2,12 +2,16 @@ region = "us-west-2" cluster_name = "gridsst" cluster_nodes_location = "us-west-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" }, }, }