# 2026-03-11 # http.tf — HTTP-функция на Go: принимает запрос, возвращает приветствие. resource "sless_function" "hello_go_http" { name = "hello-go-http" runtime = "go1.23" entrypoint = "handler.Handle" memory_mb = 128 timeout_sec = 60 source_dir = "${path.module}/code" } resource "sless_trigger" "hello_go_http" { name = "hello-go-http-trigger" type = "http" function = sless_function.hello_go_http.name enabled = true } output "trigger_url" { value = sless_trigger.hello_go_http.url }