-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_lambda_package.tf
More file actions
44 lines (33 loc) · 1.14 KB
/
Copy pathbuild_lambda_package.tf
File metadata and controls
44 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Create zip-archive of a single directory where "pip install" will also be executed (default for python runtime with requirements.txt present)
module "user_service_lambda_package" {
source = "terraform-aws-modules/lambda/aws"
version = "5.2.0"
create_function = false
#recreate_missing_package = false
build_in_docker = true
runtime = "python3.9"
source_path = [{
path = "${path.module}/lambda/UserService/"
pip_requirements = true
}]
artifacts_dir = "${path.root}/builds/package_dir/"
}
output "user_service_lambda_package_file_name" {
value = module.user_service_lambda_package.local_filename
}
module "order_service_lambda_package" {
source = "terraform-aws-modules/lambda/aws"
version = "5.2.0"
create_function = false
#recreate_missing_package = false
build_in_docker = true
runtime = "python3.9"
source_path = [{
path = "${path.module}/lambda/OrderService"
pip_requirements = true
}]
artifacts_dir = "${path.root}/builds/package_dir/"
}
output "order_service_lambda_package_file_name" {
value = module.order_service_lambda_package.local_filename
}