Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sakuracloud_proxylb: httpでのヘルスチェック時に"パスが不正です"というエラー #1162

Open
yamamoto-febc opened this issue May 13, 2024 · 0 comments
Assignees

Comments

@yamamoto-febc
Copy link
Member

yamamoto-febc commented May 13, 2024

以下のようなtfファイルだとplanは通るがapplyするとエラーになる。

resource "sakuracloud_proxylb" "example" {
  name           = "example"

  bind_port {
    proxy_mode        = "http"
    port              = 80
  }

  health_check {
    protocol    = "http"
    # 以下を指定すればエラーはなくなる
    # path          = "/"
  }
}

health_check.pathは場合により必須か否かが変わるためコードでの対応は困難と思われる。
このためドキュメントに注釈を入れることで対応としたい。

参考: エラーメッセージ

│ Error: creating SakuraCloud ProxyLB is failed: Error in response: &iaas.APIErrorResponse{IsFatal:true, Serial:"xxx", Status:"400 Bad Request", ErrorCode:"bad_request", ErrorMessage:"不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。\nパスが不正です"}
│ 
│   with sakuracloud_proxylb.example,
│   on test.tf line 14, in resource "sakuracloud_proxylb" "example":
│   14: resource "sakuracloud_proxylb" "example" {

@lvctr lvctr self-assigned this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants