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
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# ──────────────────────────────────────────────────────────────────────────────
|
||||
# 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user