-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild-js.tf
146 lines (121 loc) Β· 5.57 KB
/
build-js.tf
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// GENERATED FILE: DO NOT EDIT
resource "null_resource" "js_0_build" {
provisioner "local-exec" {
command = "cd ${local.lambda_0_dir}; ${local.lambda_0_vendor_cmd != "" ? "${local.lambda_0_vendor_cmd} && " : ""}${local.lambda_0_test_cmd != "" ? "${local.lambda_0_test_cmd} && " : ""}echo 'js 0 build'"
interpreter = ["/bin/bash", "-c"]
}
triggers {
b64sha = "${base64sha256(file(local.lambda_0_file))}"
lambda_js_runtime = "${local.lambda_js_0_runtime}"
lambda_js_name = "${local.lambda_js_0_name}"
lambda_js_handler = "${local.lambda_js_0_handler}"
lambda_js_source_file = "${local.lambda_js_0_source_file}"
lambda_js_zip = "${local.lambda_js_0_zip}"
rebuild = "${local.lambda_0_rebuild ? timestamp() : local.default_rebuild}"
}
depends_on = ["null_resource.validator"]
count = "${local.lambda_js_0_count}"
}
data "archive_file" "lambda_js_0" {
type = "zip"
source_file = "${local.lambda_js_0_source_file}"
output_path = "${local.lambda_js_0_zip}"
depends_on = ["null_resource.js_0_build"]
count = "${local.lambda_js_0_count}"
}
resource "null_resource" "js_1_build" {
provisioner "local-exec" {
command = "cd ${local.lambda_1_dir}; ${local.lambda_1_vendor_cmd != "" ? "${local.lambda_1_vendor_cmd} && " : ""}${local.lambda_1_test_cmd != "" ? "${local.lambda_1_test_cmd} && " : ""}echo 'js 1 build'"
interpreter = ["/bin/bash", "-c"]
}
triggers {
b64sha = "${base64sha256(file(local.lambda_1_file))}"
lambda_js_runtime = "${local.lambda_js_1_runtime}"
lambda_js_name = "${local.lambda_js_1_name}"
lambda_js_handler = "${local.lambda_js_1_handler}"
lambda_js_source_file = "${local.lambda_js_1_source_file}"
lambda_js_zip = "${local.lambda_js_1_zip}"
rebuild = "${local.lambda_1_rebuild ? timestamp() : local.default_rebuild}"
}
depends_on = ["null_resource.validator"]
count = "${local.lambda_js_1_count}"
}
data "archive_file" "lambda_js_1" {
type = "zip"
source_file = "${local.lambda_js_1_source_file}"
output_path = "${local.lambda_js_1_zip}"
depends_on = ["null_resource.js_1_build"]
count = "${local.lambda_js_1_count}"
}
resource "null_resource" "js_2_build" {
provisioner "local-exec" {
command = "cd ${local.lambda_2_dir}; ${local.lambda_2_vendor_cmd != "" ? "${local.lambda_2_vendor_cmd} && " : ""}${local.lambda_2_test_cmd != "" ? "${local.lambda_2_test_cmd} && " : ""}echo 'js 2 build'"
interpreter = ["/bin/bash", "-c"]
}
triggers {
b64sha = "${base64sha256(file(local.lambda_2_file))}"
lambda_js_runtime = "${local.lambda_js_2_runtime}"
lambda_js_name = "${local.lambda_js_2_name}"
lambda_js_handler = "${local.lambda_js_2_handler}"
lambda_js_source_file = "${local.lambda_js_2_source_file}"
lambda_js_zip = "${local.lambda_js_2_zip}"
rebuild = "${local.lambda_2_rebuild ? timestamp() : local.default_rebuild}"
}
depends_on = ["null_resource.validator"]
count = "${local.lambda_js_2_count}"
}
data "archive_file" "lambda_js_2" {
type = "zip"
source_file = "${local.lambda_js_2_source_file}"
output_path = "${local.lambda_js_2_zip}"
depends_on = ["null_resource.js_2_build"]
count = "${local.lambda_js_2_count}"
}
resource "null_resource" "js_3_build" {
provisioner "local-exec" {
command = "cd ${local.lambda_3_dir}; ${local.lambda_3_vendor_cmd != "" ? "${local.lambda_3_vendor_cmd} && " : ""}${local.lambda_3_test_cmd != "" ? "${local.lambda_3_test_cmd} && " : ""}echo 'js 3 build'"
interpreter = ["/bin/bash", "-c"]
}
triggers {
b64sha = "${base64sha256(file(local.lambda_3_file))}"
lambda_js_runtime = "${local.lambda_js_3_runtime}"
lambda_js_name = "${local.lambda_js_3_name}"
lambda_js_handler = "${local.lambda_js_3_handler}"
lambda_js_source_file = "${local.lambda_js_3_source_file}"
lambda_js_zip = "${local.lambda_js_3_zip}"
rebuild = "${local.lambda_3_rebuild ? timestamp() : local.default_rebuild}"
}
depends_on = ["null_resource.validator"]
count = "${local.lambda_js_3_count}"
}
data "archive_file" "lambda_js_3" {
type = "zip"
source_file = "${local.lambda_js_3_source_file}"
output_path = "${local.lambda_js_3_zip}"
depends_on = ["null_resource.js_3_build"]
count = "${local.lambda_js_3_count}"
}
resource "null_resource" "js_4_build" {
provisioner "local-exec" {
command = "cd ${local.lambda_4_dir}; ${local.lambda_4_vendor_cmd != "" ? "${local.lambda_4_vendor_cmd} && " : ""}${local.lambda_4_test_cmd != "" ? "${local.lambda_4_test_cmd} && " : ""}echo 'js 4 build'"
interpreter = ["/bin/bash", "-c"]
}
triggers {
b64sha = "${base64sha256(file(local.lambda_4_file))}"
lambda_js_runtime = "${local.lambda_js_4_runtime}"
lambda_js_name = "${local.lambda_js_4_name}"
lambda_js_handler = "${local.lambda_js_4_handler}"
lambda_js_source_file = "${local.lambda_js_4_source_file}"
lambda_js_zip = "${local.lambda_js_4_zip}"
rebuild = "${local.lambda_4_rebuild ? timestamp() : local.default_rebuild}"
}
depends_on = ["null_resource.validator"]
count = "${local.lambda_js_4_count}"
}
data "archive_file" "lambda_js_4" {
type = "zip"
source_file = "${local.lambda_js_4_source_file}"
output_path = "${local.lambda_js_4_zip}"
depends_on = ["null_resource.js_4_build"]
count = "${local.lambda_js_4_count}"
}