diff --git a/terraform/environment/region.tf b/terraform/environment/region.tf index 71eb807395..b98b76cbe4 100644 --- a/terraform/environment/region.tf +++ b/terraform/environment/region.tf @@ -9,7 +9,7 @@ module "eu_west_1" { autoscaling = local.environment.autoscaling associate_alb_with_waf_web_acl_enabled = local.environment.associate_alb_with_waf_web_acl_enabled capacity_provider = local.capacity_provider - cloudwatch_application_insights_enabled = local.environment.cloudwatch_application_insights_enabled + cloudwatch_application_insights_enabled = var.cloudwatch_application_insights_enabled container_version = var.container_version cookie_expires_use = local.environment.cookie_expires_use cookie_expires_view = local.environment.cookie_expires_view @@ -97,7 +97,7 @@ module "eu_west_2" { autoscaling = local.environment.autoscaling associate_alb_with_waf_web_acl_enabled = local.environment.associate_alb_with_waf_web_acl_enabled capacity_provider = local.capacity_provider - cloudwatch_application_insights_enabled = local.environment.cloudwatch_application_insights_enabled + cloudwatch_application_insights_enabled = var.cloudwatch_application_insights_enabled container_version = var.container_version cookie_expires_use = local.environment.cookie_expires_use cookie_expires_view = local.environment.cookie_expires_view diff --git a/terraform/environment/terraform.tfvars.json b/terraform/environment/terraform.tfvars.json index 52cf10c37a..a11c8dd048 100644 --- a/terraform/environment/terraform.tfvars.json +++ b/terraform/environment/terraform.tfvars.json @@ -119,7 +119,7 @@ "minimum": 2 } }, - "cloudwatch_application_insights_enabled": false, + "cloudwatch_application_insights_enabled": true, "cookie_expires_use": 1440, "cookie_expires_view": 1440, "create_dashboard": false, diff --git a/terraform/environment/variables.tf b/terraform/environment/variables.tf index 74f7afa8e2..b48a22d6a5 100644 --- a/terraform/environment/variables.tf +++ b/terraform/environment/variables.tf @@ -9,6 +9,11 @@ variable "container_version" { description = "The version of the ECS container images to deploy" } +variable "cloudwatch_application_insights_enabled" { + type = bool + description = "Enable CloudWatch Application Insights" +} + variable "admin_container_version" { type = string default = "latest" @@ -46,7 +51,6 @@ variable "environments" { }) cookie_expires_use = number cookie_expires_view = number - cloudwatch_application_insights_enabled = bool create_dashboard = bool create_onelogin_dashboard = bool google_analytics_id_use = string