Files
fission-console/examples/big-suite/functions_infra.tf
T
Naeel 01df1498d6 feat: big-suite terraform example + provider nodejs zip fix
- 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
2026-04-20 11:38:45 +03:00

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"]
}