Skip to content

Commit e7ec222

Browse files
author
Steven Nemetz
committed
Fix lambda source path
1 parent b7de994 commit e7ec222

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module "lambda_pagerduty" {
4040
lambda_handler = "datadog-pagerduty-integration.lambda_handler"
4141
lambda_name = "datadog_pagerduty"
4242
s3_bucket = "${var.s3_bucket}"
43-
source_dir = "pagerduty"
43+
source_dir = "${path.module}/src/pagerduty"
4444
}
4545

4646
module "lambda_slack" {
@@ -51,7 +51,7 @@ module "lambda_slack" {
5151
lambda_handler = "datadog-slack-integration.lambda_handler"
5252
lambda_name = "datadog_slack"
5353
s3_bucket = "${var.s3_bucket}"
54-
source_dir = "slack"
54+
source_dir = "${path.module}/src/slack"
5555
}
5656

5757
resource "aws_s3_bucket_notification" "bucket_notification" {

modules/lambda/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ resource "aws_iam_role" "iam_for_lambda" {
6969

7070
data "archive_file" "lambda" {
7171
type = "zip"
72-
source_dir = "src/${var.source_dir}"
72+
source_dir = "${var.source_dir}"
7373
output_path = "${var.lambda_name}.zip"
7474
}
7575

modules/pagerduty/variables.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
variable "datadog_default" {
32
description = "Default Pagerduty service for Datadog (@pagerduty)"
4-
default = false
3+
default = false
54
}
65

76
variable "service_key" {

0 commit comments

Comments
 (0)