terraform-provider-site24x7 icon indicating copy to clipboard operation
terraform-provider-site24x7 copied to clipboard

site24x7_website_monitor website field - Invalid data provided

Open azhurbilo opened this issue 2 years ago • 0 comments

Faced with bug when we provide invalid "website" field, Terraform returns Error -> not update terraform state, but Monitor was created in site24x7 (not expected behaviour)

example

we made a typo setting website = "https://****/{data.aws_ssm_parameter.aws_ssm_****.value}/****" mistake that we skip $ ${data.aws_ssm_parameter.aws_ssm_****.value} to render correct URL

Terraform plan

  + resource "site24x7_website_monitor" "...." {
      ....
      + website                     = "https://****/{data.aws_ssm_parameter.aws_ssm_****.value}/****"
    }

Terraform apply return error

╷
│ Error: Invalid data provided.
│ 
│   with module.***,
│   on *** in resource "site24x7_website_monitor" "***":
│ 
╵

attached screen of created monitor in site24x7 Site24x7-issue-1

azhurbilo avatar Oct 13 '22 11:10 azhurbilo