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

custom_http_statuses is not working #13

Open
yktakaha4 opened this issue Mar 6, 2024 · 0 comments
Open

custom_http_statuses is not working #13

yktakaha4 opened this issue Mar 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yktakaha4
Copy link

Even if custom_http_statuses is defined, it is not reflected in the environment.

  custom_http_statuses {
    up = ["403"]
    down = [
      "200", "201", "202", "203", "204", "205", "206", "207", "208", "226",
      "300", "301", "302", "303", "304", "305", "306", "307", "308",
    ]
  }
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # uptimerobot_monitor.should_forbidden_http["xxx"] will be created
  + resource "uptimerobot_monitor" "xxx" {
      + friendly_name     = "xxx"
      + http_method       = "GET"
      + id                = (known after apply)
      + ignore_ssl_errors = false
      + interval          = 300
      + status            = (known after apply)
      + timeout           = 30
      + type              = "http"
      + url               = "xxx"

      + alert_contact {
          + id = "xxx"
        }

      + custom_http_statuses {
          + down = [
              + 200,
              + 201,
              + 202,
              + 203,
              + 204,
              + 205,
              + 206,
              + 207,
              + 208,
              + 226,
              + 300,
              + 301,
              + 302,
              + 303,
              + 304,
              + 305,
              + 306,
              + 307,
              + 308,
            ]
          + up   = [
              + 403,
            ]
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

expected

スクリーンショット 2024-03-06 090151

actual

image

@yktakaha4 yktakaha4 added the bug Something isn't working label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant