96 lines
3.3 KiB
Plaintext
96 lines
3.3 KiB
Plaintext
|
|
Terraform used the selected providers to generate the following execution
|
|
plan. Resource actions are indicated with the following symbols:
|
|
+ create
|
|
|
|
Terraform will perform the following actions:
|
|
|
|
# sless_function.hello_http will be created
|
|
+ resource "sless_function" "hello_http" {
|
|
+ build_timeout_sec = (known after apply)
|
|
+ code_hash = (known after apply)
|
|
+ entrypoint = "handler-http.handle"
|
|
+ image_ref = (known after apply)
|
|
+ memory_mb = 128
|
|
+ name = "hello-http"
|
|
+ phase = (known after apply)
|
|
+ runtime = "nodejs20"
|
|
+ source_dir = "./code"
|
|
+ timeout_sec = 30
|
|
}
|
|
|
|
# sless_function.hello_job will be created
|
|
+ resource "sless_function" "hello_job" {
|
|
+ build_timeout_sec = (known after apply)
|
|
+ code_hash = (known after apply)
|
|
+ entrypoint = "handler-job.handle"
|
|
+ image_ref = (known after apply)
|
|
+ memory_mb = 128
|
|
+ name = "hello-job"
|
|
+ phase = (known after apply)
|
|
+ runtime = "nodejs20"
|
|
+ source_dir = "./code"
|
|
+ timeout_sec = 30
|
|
}
|
|
|
|
# sless_job.hello_run will be created
|
|
+ resource "sless_job" "hello_run" {
|
|
+ completion_time = (known after apply)
|
|
+ event_json = jsonencode(
|
|
{
|
|
+ numbers = [
|
|
+ 100,
|
|
+ 200,
|
|
+ 300,
|
|
]
|
|
}
|
|
)
|
|
+ function = "hello-job"
|
|
+ message = (known after apply)
|
|
+ name = "hello-run"
|
|
+ phase = (known after apply)
|
|
+ run_id = 9
|
|
+ start_time = (known after apply)
|
|
+ wait_timeout_sec = 600
|
|
}
|
|
|
|
# sless_trigger.hello_http will be created
|
|
+ resource "sless_trigger" "hello_http" {
|
|
+ active = (known after apply)
|
|
+ enabled = true
|
|
+ function = "hello-http"
|
|
+ name = "hello-http-trigger"
|
|
+ type = "http"
|
|
+ url = (known after apply)
|
|
}
|
|
|
|
Plan: 4 to add, 0 to change, 0 to destroy.
|
|
|
|
Changes to Outputs:
|
|
+ job_completion_time = (known after apply)
|
|
+ job_message = (known after apply)
|
|
+ job_phase = (known after apply)
|
|
+ trigger_url = (known after apply)
|
|
sless_function.hello_job: Creating...
|
|
sless_function.hello_http: Creating...
|
|
sless_function.hello_http: Still creating... [00m10s elapsed]
|
|
sless_function.hello_job: Still creating... [00m10s elapsed]
|
|
sless_function.hello_http: Still creating... [00m20s elapsed]
|
|
sless_function.hello_job: Still creating... [00m20s elapsed]
|
|
sless_function.hello_http: Creation complete after 21s [name=hello-http]
|
|
sless_function.hello_job: Creation complete after 21s [name=hello-job]
|
|
sless_trigger.hello_http: Creating...
|
|
sless_job.hello_run: Creating...
|
|
sless_trigger.hello_http: Creation complete after 2s [name=hello-http-trigger]
|
|
sless_job.hello_run: Still creating... [00m10s elapsed]
|
|
sless_job.hello_run: Creation complete after 10s [name=hello-run]
|
|
|
|
Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
|
|
|
|
Outputs:
|
|
|
|
job_completion_time = "2026-03-11T06:47:08Z"
|
|
job_message = "{\"input\":[100,200,300],\"sum\":600,\"avg\":200,\"count\":3}"
|
|
job_phase = "Succeeded"
|
|
trigger_url = "https://sless-api.kube5s.ru/fn/sless-cdd874dfa31ba6ca/hello-http"
|