generated from champ-oss/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lambda.tf
23 lines (22 loc) · 1016 Bytes
/
lambda.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
data "archive_file" "this" {
type = "zip"
output_file_mode = "0666"
source_file = "${path.module}/github_event_receiver_lambda/github_event_receiver_lambda.py"
output_path = "${path.module}/github_event_receiver_lambda.zip"
}
module "lambda" {
source = "github.com/champ-oss/terraform-aws-lambda.git?ref=v1.0.142-273b055"
git = var.git
name = "github_event_receiver_lambda"
tags = merge(local.tags, var.tags)
runtime = var.runtime
handler = "github_event_receiver_lambda.handler"
filename = data.archive_file.this.output_path
source_code_hash = data.archive_file.this.output_base64sha256
enable_function_url = true
function_url_authorization_type = "NONE"
environment = {
SNS_TOPIC_ARN = aws_sns_topic.this.arn
SHARED_SECRET = var.shared_secret
}
}