Skip to content

Commit

Permalink
Merge pull request #8803 from ministryofjustice/fix/op-amp-region
Browse files Browse the repository at this point in the history
🔀 Fix a hardcoded region in APS string
  • Loading branch information
jacobwoffenden authored Nov 26, 2024
2 parents 32a8024 + 8bc374a commit 10c76a2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,22 @@ locals {
athena_enabled = false
},
"analytical-platform-compute-development" = {
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_id = "ws-bfdd5d7a-5571-4686-bfd4-43ab07cf8d54ba"
xray_enabled = true
athena_enabled = false
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_region = "eu-west-2"
amazon_prometheus_workspace_id = "ws-bfdd5d7a-5571-4686-bfd4-43ab07cf8d54ba"
xray_enabled = true
athena_enabled = false
},
"analytical-platform-compute-test" = {
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_id = "ws-a9d7f576-58b7-4748-b4c1-b02bbdc54a2922"
xray_enabled = true
athena_enabled = false
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_region = "eu-west-2"
amazon_prometheus_workspace_id = "ws-a9d7f576-58b7-4748-b4c1-b02bbdc54a2922"
xray_enabled = true
athena_enabled = false
}
}
},
Expand Down Expand Up @@ -128,28 +130,31 @@ locals {
identity_centre_team = "analytical-platform"
aws_accounts = {
"analytical-platform-compute-development" = {
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_id = "ws-bfdd5d7a-5571-4686-bfd4-43ab07cf8d54ba"
xray_enabled = true
athena_enabled = false
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_region = "eu-west-2"
amazon_prometheus_workspace_id = "ws-bfdd5d7a-5571-4686-bfd4-43ab07cf8d54ba"
xray_enabled = true
athena_enabled = false
},
"analytical-platform-compute-production" = {
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_id = "ws-257796b7-4aa4-4c18-b906-6dd21e95d7b73e"
xray_enabled = true
athena_enabled = false
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_region = "eu-west-2"
amazon_prometheus_workspace_id = "ws-257796b7-4aa4-4c18-b906-6dd21e95d7b73e"
xray_enabled = true
athena_enabled = false
},
"analytical-platform-compute-test" = {
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_id = "ws-a9d7f576-58b7-4748-b4c1-b02bbdc54a2922"
xray_enabled = true
athena_enabled = false
cloudwatch_enabled = true
prometheus_push_enabled = false
amazon_prometheus_query_enabled = true
amazon_prometheus_workspace_region = "eu-west-2"
amazon_prometheus_workspace_id = "ws-a9d7f576-58b7-4748-b4c1-b02bbdc54a2922"
xray_enabled = true
athena_enabled = false
},
"analytical-platform-ingestion-development" = {
cloudwatch_enabled = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
name = "${var.name}-amp"
url = "https://aps-workspaces.eu-west-2.amazonaws.com/workspaces/${var.amazon_prometheus_workspace_id}/"
url = "https://aps-workspaces.${var.amazon_prometheus_workspace_region}.amazonaws.com/workspaces/${var.amazon_prometheus_workspace_id}/"
}

resource "grafana_data_source" "this" {
Expand Down

0 comments on commit 10c76a2

Please sign in to comment.