Skip to content

Commit

Permalink
Merge pull request #17 from ghrcdaac/Add_enable_CW_logging
Browse files Browse the repository at this point in the history
Add enable cw logging
  • Loading branch information
mcenirm authored Jan 10, 2022
2 parents 0b71235 + f0f5150 commit a0c4397
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ module "dmrpp_service" {
memory_reservation = var.memory_reservation
region = var.region
volumes = var.volumes
enable_cw_logging = var.enable_cw_logging

}
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 a0c4397

Please sign in to comment.