From 76bdb082133caa03c07602c6177e0871e7292c5a Mon Sep 17 00:00:00 2001 From: Fauzi Gomez Date: Wed, 5 Jun 2019 16:28:57 -0500 Subject: [PATCH] chore(defaults): values change (#871) --- tf_files/aws/csoc_common_logging/variables.tf | 2 +- tf_files/aws/modules/common-logging/lambda_function.py | 4 ++-- tf_files/aws/modules/common-logging/variables.tf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tf_files/aws/csoc_common_logging/variables.tf b/tf_files/aws/csoc_common_logging/variables.tf index 976ed1755..b0bafbc6d 100644 --- a/tf_files/aws/csoc_common_logging/variables.tf +++ b/tf_files/aws/csoc_common_logging/variables.tf @@ -25,7 +25,7 @@ variable "elasticsearch_domain" { } variable "threshold" { - default = "4.00" + default = "" } variable "slack_webhook" { diff --git a/tf_files/aws/modules/common-logging/lambda_function.py b/tf_files/aws/modules/common-logging/lambda_function.py index 194cba673..21d328a12 100755 --- a/tf_files/aws/modules/common-logging/lambda_function.py +++ b/tf_files/aws/modules/common-logging/lambda_function.py @@ -175,11 +175,11 @@ def check_speed(event,logGroup): would send out a notification to a slack channel expresed as env variable """ - + # if there is no threshold, let's not even check if os.environ.get('threshold') is not None: threshold = float(os.environ.get('threshold')) else: - threshold = 4.00 + return response_time = 100.00 diff --git a/tf_files/aws/modules/common-logging/variables.tf b/tf_files/aws/modules/common-logging/variables.tf index 349e896b7..f124b4f59 100644 --- a/tf_files/aws/modules/common-logging/variables.tf +++ b/tf_files/aws/modules/common-logging/variables.tf @@ -34,7 +34,7 @@ variable "aws_secret_key"{ } variable "threshold"{ - default = "4.00" + default = "" } variable "slack_webhook"{