feat: provider v0.1.10 — source_dir (zip внутри провайдера), убран archive провайдер из всех примеров

This commit is contained in:
“Naeel”
2026-03-09 17:45:45 +04:00
parent 6e236e5998
commit 5f913e9f25
16 changed files with 148 additions and 170 deletions
+7 -7
View File
@@ -34,7 +34,7 @@ terraform apply -auto-approve
terraform output job_result
# Проверить функцию:
curl -s $(terraform output -raw display_url)
curl -s https://sless-api.kube5s.ru/fn/default/simple-py-time-display
```
---
@@ -47,7 +47,7 @@ terraform init
terraform apply -auto-approve
terraform output job_result
curl -s $(terraform output -raw display_url)
curl -s https://sless-api.kube5s.ru/fn/default/simple-node-time-display
```
---
@@ -62,7 +62,7 @@ terraform init
terraform apply -auto-approve
# Проверить HTTP-функцию:
curl -s -X POST $(terraform output -raw trigger_url) \
curl -s -X POST https://sless-api.kube5s.ru/fn/default/hello-http \
-H 'Content-Type: application/json' -d '{"name":"World"}'
# Посмотреть результат джоба:
@@ -99,16 +99,16 @@ terraform output notes_url # CRUD
terraform output notes_list_url # список всех записей
# Создать запись:
curl -s -X POST "$(terraform output -raw notes_url)/add?title=Hello&body=World"
curl -s -X POST "https://sless-api.kube5s.ru/fn/default/notes/add?title=Hello&body=World"
# Список записей:
curl -s $(terraform output -raw notes_list_url)
curl -s https://sless-api.kube5s.ru/fn/default/notes-list
# Обновить (id из предыдущего ответа):
curl -s -X POST "$(terraform output -raw notes_url)/update?id=1&title=Updated&body=New+body"
curl -s -X POST "https://sless-api.kube5s.ru/fn/default/notes/update?id=1&title=Updated&body=New+body"
# Удалить:
curl -s -X POST "$(terraform output -raw notes_url)/delete?id=1"
curl -s -X POST "https://sless-api.kube5s.ru/fn/default/notes/delete?id=1"
```
---