feat: provider v0.1.10 — source_dir (zip внутри провайдера), убран archive провайдер из всех примеров
This commit is contained in:
+7
-7
@@ -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"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user