Skip to content

Commit

Permalink
Add enabling cloud watch logging
Browse files Browse the repository at this point in the history
  • Loading branch information
amarouane committed Dec 14, 2021
1 parent 2c57038 commit 33db561
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/dmrpp_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ module "dmrpp_service" {

environment = {
AWS_DEFAULT_REGION = var.region
ENABLE_CW_LOGGING = var.enable_cw_logging

}
command = [
"dmrpp-generator",
Expand Down
1 change: 1 addition & 0 deletions modules/dmrpp_service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ variable "cluster_arn" {}
variable "log_destination_arn" {}
variable "docker_image" {}
variable "volumes" {}
variable "enable_cw_logging" {}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ variable "volumes" {
default = []
}


variable "enable_cw_logging" {
description = "Enable logging to cloud watch"
type = bool
default = true
}

0 comments on commit 33db561

Please sign in to comment.