feat: provider v0.1.9 — namespace removed from resources, moved to provider block
This commit is contained in:
@@ -16,7 +16,6 @@ data "archive_file" "handler_job" {
|
||||
}
|
||||
|
||||
resource "sless_function" "hello_job" {
|
||||
namespace = "default"
|
||||
name = "hello-job"
|
||||
runtime = "nodejs20"
|
||||
entrypoint = "handler-job.handle"
|
||||
@@ -31,7 +30,6 @@ resource "sless_function" "hello_job" {
|
||||
# Одноразовый запуск. Все поля immutable — изменение любого пересоздаёт джоб.
|
||||
# run_id: 0 = не запускать, 1+ = запустить. Для повторного запуска увеличь run_id (1→2→3...).
|
||||
resource "sless_job" "hello_run" {
|
||||
namespace = "default"
|
||||
name = "hello-run"
|
||||
function = sless_function.hello_job.name
|
||||
event_json = jsonencode({ numbers = [100, 200, 300] })
|
||||
|
||||
Reference in New Issue
Block a user