wasfree/terraform-provider-uptrends

uptrends_monitor_web match_pattern block has no effect

Opened this issue · 0 comments

Hi there,

Terraform Version

% terraform -v
Terraform v1.5.2

Affected Resource(s)

Please list the resources as a list, for example:

  • uptrends_monitor_web

Terraform Configuration Files

resource "uptrends_monitor_web" "test" {
  type                     = "Https"
  name                     = "Google Test"
  url                      = "https://www.google.com"
  check_interval           = 5
  primary_checkpoints_only = true
  generate_alert           = false

  expected_http_status_code = 200

  match_pattern {
    is_positive = true
    pattern     = "Some text here"
  }

  selected_checkpoints {
  ...
  }
}

Expected Behavior

  • HTTP status code match field should be set to "200"
  • Checkpage content field should have value "Some text here"

Actual Behavior

  • HTTP status code match field is blank
  • Checkpage content field is blank
  • Terraform continually tries to apply the broken block
    + match_pattern {
    + is_positive = true
    + pattern = "Some text here"
    }

Also, the docs for match_pattern do not match what is required to be passed, e.g.

Docs
match_pattern = "blah"

Required
match_pattern {
is_positive = true
pattern = "Some text here"
}

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply