From 0689157d86db88e3fdd48b155d7d1db034493577 Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Mon, 9 Sep 2024 08:21:59 +0800 Subject: [PATCH] add aws region to cloudwatch dashboard name --- terraform/010-cluster/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terraform/010-cluster/main.tf b/terraform/010-cluster/main.tf index 5d41d87..b431b9b 100644 --- a/terraform/010-cluster/main.tf +++ b/terraform/010-cluster/main.tf @@ -114,7 +114,7 @@ module "ecs-service-cloudwatch-dashboard" { version = "~> 3.0.1" cluster_name = var.ecs_cluster_name - dashboard_name = "${var.app_name}-${var.app_env}" + dashboard_name = "${var.app_name}-${var.app_env}-${data.aws_region.current.name}" service_names = [ "${var.idp_name}-db-backup", @@ -129,3 +129,4 @@ module "ecs-service-cloudwatch-dashboard" { ] } +data "aws_region" "current" {}