aboutsummaryrefslogtreecommitdiffstats
path: root/terraform/lambda.tf
diff options
context:
space:
mode:
authorAlex <git@ajschof.me>2024-08-29 10:18:08 +0100
committerGitHub <noreply@github.com>2024-08-29 10:18:08 +0100
commite8b3c676fe6b4b96e784d5783a8e3ecfcebd4568 (patch)
tree6c634a4dc000774902399d1b371f3ee4c2033773 /terraform/lambda.tf
parentc600a7694f770954e4c8b836de5640024d61c4e6 (diff)
parent25dc9cc19a3667f4c1f79ea0f16a16c713b1f478 (diff)
downloadde-project-bentley-e8b3c676fe6b4b96e784d5783a8e3ecfcebd4568.tar.gz
de-project-bentley-e8b3c676fe6b4b96e784d5783a8e3ecfcebd4568.zip
Merge pull request #108 from ajschofield/development
pr: final push, data warehouse is currently empty to test that it uploads through terraform
Diffstat (limited to 'terraform/lambda.tf')
-rw-r--r--terraform/lambda.tf6
1 files changed, 4 insertions, 2 deletions
diff --git a/terraform/lambda.tf b/terraform/lambda.tf
index d33a6c9..5f4a58e 100644
--- a/terraform/lambda.tf
+++ b/terraform/lambda.tf
@@ -83,11 +83,13 @@ resource "aws_lambda_function" "extract_lambda" {
# Transform Lambda Function #
#############################
+
data "archive_file" "transform_lambda_zip" {
type = "zip"
- source_file = "${path.module}/../src/transform_lambda.py"
- output_path = "${path.module}/../transform_function.zip"
+ source_dir = "${path.module}../src/transform_lambda"
+ output_path = "${path.module}../transform_lambda.zip"
}
+
resource "aws_s3_object" "transform_lambda_code" {
bucket = aws_s3_bucket.lambda_code_bucket.bucket
key = "${var.transform_lambda_name}/transform_function.zip"
git.ajschof.me — hosted by ajschofield — powered by cgit