Skip to content

Commit

Permalink
add sentry dsn to forecast india app (#545)
Browse files Browse the repository at this point in the history
* add sentry dsn to forecast india app

* fix

* trigger git
  • Loading branch information
peterdudfield committed May 15, 2024
1 parent 3a26ebe commit 2840118
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/india/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ module "forecast" {
}
loglevel = "INFO"
ecs-task_execution_role_arn = module.ecs-cluster.ecs_task_execution_role_arn
sentry_dsn= var.sentry_dsn
}

# 4.0
Expand Down
5 changes: 5 additions & 0 deletions terraform/india/development/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ variable version-runvl-consumer {
variable "analysis_dashboard_version" {
description = "The Analysis Dashboard version"
default = "main"
}

variable "sentry_dsn" {
type = string
description = "DNS for Sentry monitoring"
}
1 change: 1 addition & 0 deletions terraform/modules/services/eb_app/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ variable "s3_bucket" {
}
EOT
}

3 changes: 2 additions & 1 deletion terraform/modules/services/forecast_generic/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ resource "aws_ecs_task_definition" "ecs-task-definition" {
{"name": "OCF_ENVIRONMENT", "value": var.environment},
{"name": "USE_ADJUSTER", "value": var.use_adjuster},
{"name": "SAVE_GSP_SUM", "value": var.pvnet_gsp_sum},
{"name": "ESMFMKFILE", "value": "/opt/conda/lib/esmf.mk"}
{"name": "ESMFMKFILE", "value": "/opt/conda/lib/esmf.mk"},
{"name": "SENTRY_DSN", "value": var.sentry_dsn}
]

secrets : [
Expand Down
6 changes: 6 additions & 0 deletions terraform/modules/services/forecast_generic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,10 @@ variable "pvnet_gsp_sum" {
variable "ecs-task_execution_role_arn" {
description = "The arn of the ECS cluster task execution role"
type = string
}

variable "sentry_dsn" {
type = string
description = "DNS for Sentry monitoring"
default=""
}

0 comments on commit 2840118

Please sign in to comment.