|
@@ -38,10 +38,8 @@ resource "aws_security_group_rule" "threatq_lambda_splunk_out" {
|
|
|
# Env variables for bootstrap only; true secrets should be in vault
|
|
|
resource "aws_lambda_function" "function" {
|
|
|
description = "Sync data between ThreatQ and Splunk"
|
|
|
- #filename = "code.zip"
|
|
|
- #source_code_hash = filebase64sha256("code.zip")
|
|
|
- s3_bucket = aws_s3_bucket.bucket
|
|
|
- s3_key = "code.zip"
|
|
|
+ filename = "code.zip"
|
|
|
+ source_code_hash = filebase64sha256("code.zip")
|
|
|
function_name = "threatq_data_sync"
|
|
|
role = aws_iam_role.role.arn
|
|
|
handler = "lambda_function.lambda_handler"
|