refactor: hello-node — zip-файлы в dist/, исходники остаются в code/
This commit is contained in:
parent
c958927e69
commit
11e4f28fb4
@ -10,7 +10,7 @@
|
|||||||
data "archive_file" "handler_http" {
|
data "archive_file" "handler_http" {
|
||||||
type = "zip"
|
type = "zip"
|
||||||
source_file = "${path.module}/code/handler-http.js"
|
source_file = "${path.module}/code/handler-http.js"
|
||||||
output_path = "${path.module}/handler-http.zip"
|
output_path = "${path.module}/dist/handler-http.zip"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "sless_function" "hello_http" {
|
resource "sless_function" "hello_http" {
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
data "archive_file" "handler_job" {
|
data "archive_file" "handler_job" {
|
||||||
type = "zip"
|
type = "zip"
|
||||||
source_file = "${path.module}/code/handler-job.js"
|
source_file = "${path.module}/code/handler-job.js"
|
||||||
output_path = "${path.module}/handler-job.zip"
|
output_path = "${path.module}/dist/handler-job.zip"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "sless_function" "hello_job" {
|
resource "sless_function" "hello_job" {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user