diff --git a/terraform/lambda.tf b/terraform/lambda.tf index 2892894..b22c010 100644 --- a/terraform/lambda.tf +++ b/terraform/lambda.tf @@ -35,7 +35,9 @@ resource "aws_lambda_event_source_mapping" "analyzer_via_sqs" { // Create the CarbonBlack downloading Lambda function. module "binaryalert_downloader" { + enabled = var.enable_carbon_black_downloader ? 1 : 0 + source = "./modules/lambda" function_name = "${var.name_prefix}_binaryalert_downloader" description = "Copies binaries from CarbonBlack into the BinaryAlert S3 bucket" diff --git a/terraform/variables.tf b/terraform/variables.tf index e96487b..3957e29 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -21,8 +21,11 @@ variable "carbon_black_timeout" { variable "encrypted_carbon_black_api_token" { } -variable "s3_log_bucket" { -} +variable "enable_carbon_black_downloader" {} +variable "carbon_black_url" {} +variable "carbon_black_timeout" {} +variable "encrypted_carbon_black_api_token" {} + variable "s3_log_prefix" { }