aboutsummaryrefslogtreecommitdiffstats
path: root/terraform
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-19 15:02:39 +0100
committerAlex Schofield <git@ajschof.me>2024-08-19 15:02:39 +0100
commit3b16bca30c71df786403d0e1d84a5653578b3e46 (patch)
tree09fcdec8d36eddf7941dd3b441e83eddd38b84d7 /terraform
parent57d1e1ee5a13269f1bef6c3b754cb8374a657202 (diff)
downloadde-project-bentley-3b16bca30c71df786403d0e1d84a5653578b3e46.tar.gz
de-project-bentley-3b16bca30c71df786403d0e1d84a5653578b3e46.zip
infra(tf): modify variables & remove past zip creation
Diffstat (limited to 'terraform')
-rw-r--r--terraform/lambda.tf7
1 files changed, 3 insertions, 4 deletions
diff --git a/terraform/lambda.tf b/terraform/lambda.tf
index 714ffa5..986170f 100644
--- a/terraform/lambda.tf
+++ b/terraform/lambda.tf
@@ -90,17 +90,16 @@ resource "aws_lambda_function" "load_lambda" {
# Lambda Layer Specification
locals {
- layer_dir = "lambda_layer"
+ layer_dir = "../"
requirements = "requirements.txt"
layer_zip = "layer.zip"
layer_name = "lambda_layer_dev"
+ script_dir = "../scripts"
}
resource "null_resource" "prepare_layer" {
provisioner "local-exec" {
- command = <<EOT
- cd
- EOT
+ command = "bash ${local.script_dir}/make_layer_zip.sh"
}
}
git.ajschof.me — hosted by ajschofield — powered by cgit