by shigemk2

当面は技術的なことしか書かない

statuscake

statuscake_ssl_check

ssl checkのリソース管理 registry.terraform.io

StatusCake Terraform provider

以下providerで設定ができる バックオフ期間 リトライ rps developers.statuscake.com registry.terraform.io

StatusCake API 1.2.0

integrationはまだない developers.statuscake.com

statuscake_maintenance_window その2

startは未来時間を設定しなければならない 過去の時間を設定したらplanは動くがapplyで失敗する maintenance windowは時間が過ぎたらhistoryに移行してリソース消滅扱いなので、時間が過ぎたらresourceも消さなければならない github.com

statuscake_maintenance_window

メンテナンスウィンドウ タイムゾーンはUTCデフォだが他のタイムゾーンはどう書けばいいか不明 testの指定はID指定 github.com

jsonencode

terraform consoleで試せる 特筆することはない 以下の通り > jsonencode({"hello"="world"}) {"hello":"world"} > jsonencode({"hello"=30}) {"hello":30} developer.hashicorp.com

statuscake_uptime_check request_payload

択一 request_payload (Map of String) request_payload_raw (String) jsonencodeが使える registry.terraform.io

statuscake_uptime_check request_method

request_method (String) Type of HTTP check. Either HTTP, or HEAD request_payload (Map of String) Payload submitted with the request. Setting this updates the check to use the HTTP POST verb. Only one of request_payload or request_payload_r…

GET /uptime-locations

ロケーション(region)の情報を取得する region_codeでフィルターもできる curl https://api.statuscake.com/v1/uptime-locations \ -H "Authorization: Bearer ${API_TOKEN}" developers.statuscake.com