Skip to content

Commit 2a9e9c0

Browse files
changes to the zip file for the lambda
1 parent b33a94e commit 2a9e9c0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

data_archive_file_ami_backup.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data "archive_file" "ami_encryption" {
22
type = "zip"
3-
source_file = data.null_data_source.lambda_file.outputs.filename
3+
source_file = "${path.module}/functions/ami_encryption.py"
44
output_path = data.null_data_source.lambda_archive.outputs.filename
55
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data "null_data_source" "lambda_archive" {
22
inputs = {
3-
filename = substr("${path.module}/functions/ami_encryption.zip", length(path.cwd) + 1, -1)
3+
filename = "${path.module}/functions/ami_encryption.zip"
44
}
5-
}
5+
}

±!

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
data "null_data_source" "lambda_archive" {
2+
inputs = {
3+
filename = "${path.module}/functions/ami_encryption.zip"
4+
}
5+
}

0 commit comments

Comments
 (0)