From 1fbfc6c6e6c7e9a34f01f075f6fe2b57589aa59c Mon Sep 17 00:00:00 2001 From: dydxwill <119354122+dydxwill@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:43:05 -0400 Subject: [PATCH] Remove Indexer dashboards from terraform (#139) --- indexer_dashboards/indexer_dashboards.tf | 4 - indexer_dashboards/providers.tf | 6 - indexer_dashboards/terraform.tfvars | 51 - indexer_dashboards/variables.tf | 40 - indexer_dashboards/versions.tf | 18 - .../indexer_dashboards/comlink_dashboard.tf | 822 ---- modules/indexer_dashboards/ender_dashboard.tf | 3354 ----------------- .../indexer_dashboards/full_node_dashboard.tf | 544 --- modules/indexer_dashboards/locals.tf | 69 - .../indexer_dashboards/postgres_dashboard.tf | 66 - .../roundtable_dashboard.tf | 952 ----- modules/indexer_dashboards/socks_dashboard.tf | 1526 -------- modules/indexer_dashboards/variables.tf | 22 - modules/indexer_dashboards/versions.tf | 10 - .../indexer_dashboards/vulcan_dashboard.tf | 1813 --------- 15 files changed, 9297 deletions(-) delete mode 100644 indexer_dashboards/indexer_dashboards.tf delete mode 100644 indexer_dashboards/providers.tf delete mode 100644 indexer_dashboards/terraform.tfvars delete mode 100644 indexer_dashboards/variables.tf delete mode 100644 indexer_dashboards/versions.tf delete mode 100644 modules/indexer_dashboards/comlink_dashboard.tf delete mode 100644 modules/indexer_dashboards/ender_dashboard.tf delete mode 100644 modules/indexer_dashboards/full_node_dashboard.tf delete mode 100644 modules/indexer_dashboards/locals.tf delete mode 100644 modules/indexer_dashboards/postgres_dashboard.tf delete mode 100644 modules/indexer_dashboards/roundtable_dashboard.tf delete mode 100644 modules/indexer_dashboards/socks_dashboard.tf delete mode 100644 modules/indexer_dashboards/variables.tf delete mode 100644 modules/indexer_dashboards/versions.tf delete mode 100644 modules/indexer_dashboards/vulcan_dashboard.tf diff --git a/indexer_dashboards/indexer_dashboards.tf b/indexer_dashboards/indexer_dashboards.tf deleted file mode 100644 index 031fed71..00000000 --- a/indexer_dashboards/indexer_dashboards.tf +++ /dev/null @@ -1,4 +0,0 @@ -module "indexer_dashboards" { - source = "../modules/indexer_dashboards" - indexer_services_variable_mapping = var.indexer_services_variable_mapping -} diff --git a/indexer_dashboards/providers.tf b/indexer_dashboards/providers.tf deleted file mode 100644 index 8d83a778..00000000 --- a/indexer_dashboards/providers.tf +++ /dev/null @@ -1,6 +0,0 @@ -# Default provider. -provider "datadog" { - api_key = var.datadog_api_key - app_key = var.datadog_app_key - api_url = var.datadog_api_url -} diff --git a/indexer_dashboards/terraform.tfvars b/indexer_dashboards/terraform.tfvars deleted file mode 100644 index d83fce12..00000000 --- a/indexer_dashboards/terraform.tfvars +++ /dev/null @@ -1,51 +0,0 @@ -indexer_services_variable_mapping = { - "dev" : { - "environment" : "dev", - "service" : "indexer", - "cluster_name" : "dev-indexer-apne1-cluster", - "ecs_cluster_name" : "dev-indexer-full-node-cluster", - "msk_cluster_name" : "dev-indexer-apne1-msk-cluster" - }, - "dev2" : { - "environment" : "dev2", - "service" : "indexer", - "cluster_name" : "dev2-indexer-apne1-cluster", - "ecs_cluster_name" : "dev2-indexer-full-node-cluster", - "msk_cluster_name" : "dev2-indexer-apne1-msk-cluster" - }, - "dev3" : { - "environment" : "dev3", - "service" : "indexer", - "cluster_name" : "dev3-indexer-apne1-cluster", - "ecs_cluster_name" : "dev3-indexer-full-node-cluster", - "msk_cluster_name" : "dev3-indexer-apne1-msk-cluster" - }, - "dev4" : { - "environment" : "dev4", - "service" : "indexer", - "cluster_name" : "dev4-indexer-apne1-cluster", - "ecs_cluster_name" : "dev4-indexer-full-node-cluster", - "msk_cluster_name" : "dev4-indexer-apne1-msk-cluster" - }, - "dev5" : { - "environment" : "dev5", - "service" : "indexer", - "cluster_name" : "dev5-indexer-apne1-cluster", - "ecs_cluster_name" : "dev5-indexer-full-node-cluster", - "msk_cluster_name" : "dev5-indexer-apne1-msk-cluster" - }, - "staging" : { - "environment" : "staging", - "service" : "indexer", - "cluster_name" : "staging-indexer-apne1-cluster", - "ecs_cluster_name" : "staging-indexer-full-node-cluster", - "msk_cluster_name" : "staging-indexer-apne1-msk-cluster" - }, - "testnet2" : { - "environment" : "testnet2", - "service" : "indexer", - "cluster_name" : "testnet2-indexer-apne1-cluster", - "ecs_cluster_name" : "testnet2-indexer-full-node-cluster", - "msk_cluster_name" : "testnet2-indexer-apne1-msk-cluster" - }, -} diff --git a/indexer_dashboards/variables.tf b/indexer_dashboards/variables.tf deleted file mode 100644 index 1f9bd1fd..00000000 --- a/indexer_dashboards/variables.tf +++ /dev/null @@ -1,40 +0,0 @@ -variable "indexer_services_variable_mapping" { - type = map( - object({ - # Environment - environment = string - - # Service name - service = string - - # Cluster name for the indexer services - cluster_name = string - - # ECS cluster name for the full node - ecs_cluster_name = string - - # MSK cluster name - msk_cluster_name = string - }) - ) - - description = "Map of variable name to preset values of variables used in indexer services." -} - -variable "datadog_api_key" { - type = string - description = "Datadog API key" - sensitive = true -} - -variable "datadog_app_key" { - type = string - description = "Datadog app key" - sensitive = true -} - -variable "datadog_api_url" { - type = string - description = "The datadog api url" - default = "https://api.datadoghq.com/" -} diff --git a/indexer_dashboards/versions.tf b/indexer_dashboards/versions.tf deleted file mode 100644 index 401824f8..00000000 --- a/indexer_dashboards/versions.tf +++ /dev/null @@ -1,18 +0,0 @@ -terraform { - cloud { - organization = "dydxprotocol" - - workspaces { - tags = ["indexer-dashboards"] - } - } - - required_providers { - datadog = { - source = "DataDog/datadog" - version = "~> 3.29" - } - } - - required_version = "~> 1.3.2" -} diff --git a/modules/indexer_dashboards/comlink_dashboard.tf b/modules/indexer_dashboards/comlink_dashboard.tf deleted file mode 100644 index c3c7b154..00000000 --- a/modules/indexer_dashboards/comlink_dashboard.tf +++ /dev/null @@ -1,822 +0,0 @@ -resource "datadog_dashboard_json" "comlink" { - dashboard = <