- examples/big-suite: E-Commerce 10 functions, 6 layers, real depends_on - provider: nodejs packages now wrapped in ESM zip (buildJSDeployZip) - provider: loadPackageLiteral reads raw file, nodejs zip via source_dir - all 10 functions verified working: python/node/ruby/go runtimes
25 lines
1.1 KiB
Terraform
25 lines
1.1 KiB
Terraform
# ──────────────────────────────────────────────────────────────────────────────
|
|
# Infra layer: health-check (node)
|
|
# Полностью независима — деплоится параллельно со всем остальным.
|
|
# ──────────────────────────────────────────────────────────────────────────────
|
|
|
|
resource "fission_package" "health" {
|
|
name = "ecom-health-pkg"
|
|
environment = fission_environment.node.name
|
|
source_dir = "${path.module}/code/node-health"
|
|
}
|
|
|
|
resource "fission_function" "health" {
|
|
name = "ecom-health"
|
|
environment = fission_environment.node.name
|
|
package_name = fission_package.health.name
|
|
entrypoint = "main"
|
|
}
|
|
|
|
resource "fission_http_trigger" "health" {
|
|
name = "ecom-health-route"
|
|
function = fission_function.health.name
|
|
url = "/ecom/health"
|
|
methods = ["GET"]
|
|
}
|