Skip to content

Commit 53d6162

Browse files
committed
Default filepaths for .zips
1 parent f16e67d commit 53d6162

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ locals {
4040
opensearch_domain = var.deploy_stac_server_opensearch_serverless ? aws_opensearchserverless_collection.stac_server_opensearch_serverless_collection[0].dashboard_endpoint : aws_opensearch_domain.stac_server_opensearch_domain[0].domain_name
4141

4242
# Resolve the stac-server Lambda ZIP filepaths.
43-
# Default filepaths are relative to the module and used if a filepath is null.
43+
# Default filepaths are used if a filepath is null.
4444
# User-provided filepaths are expected to be relative to the root module.
4545
resolved_api_lambda_zip_filepath = (
4646
var.api_lambda.zip_filepath == null
47-
? "${path.module}/lambda/api/api.zip"
47+
? "lambda/api/api.zip"
4848
: "${path.root}/${var.api_lambda.zip_filepath}"
4949
)
5050
resolved_ingest_lambda_zip_filepath = (
5151
var.ingest_lambda.zip_filepath == null
52-
? "${path.module}/lambda/ingest/ingest.zip"
52+
? "lambda/ingest/ingest.zip"
5353
: "${path.root}/${var.ingest_lambda.zip_filepath}"
5454
)
5555
resolved_pre_hook_lambda_zip_filepath = (
5656
var.pre_hook_lambda.zip_filepath == null
57-
? "${path.module}/lambda/pre-hook/pre-hook.zip"
57+
? "lambda/pre-hook/pre-hook.zip"
5858
: "${path.root}/${var.pre_hook_lambda.zip_filepath}"
5959
)
6060
}

0 commit comments

Comments
 (0)