Coder Social home page Coder Social logo

Comments (3)

jim-billy-zoho avatar jim-billy-zoho commented on July 28, 2024

@jamiejackson Thank you for raising this issue. Please use the latest version 1.0.83 and let us know whether your imports are successful.

from terraform-provider-site24x7.

jamiejackson avatar jamiejackson commented on July 28, 2024

This is great, thanks!

Update: I've spun off the following problem to #263

However, I am seeing odd behavior. Here's one example. (I'll add others later.)

I have version 1.0.84.

I imported this user:

locals {
  notification_medium = {
    email = 1
    sms   = 2
    voice = 3
  }
  notification_medium_all = [1,2,3]
}

resource "site24x7_user" "user_a" {
  display_name  = "REDACTED"
  email_address = "REDACTED"
  statusiq_role = 22
  user_role     = 2
  notification_medium = local.notification_medium_all
  up_notification_medium = local.notification_medium_all
  down_notification_medium = local.notification_medium_all
  trouble_notification_medium = local.notification_medium_all
  critical_notification_medium = local.notification_medium_all
  mobile_settings = {
    "country_code" = "1"
    "mobile_number" = "5555555555"
  }
}

Before I had mobile_settings.mobile_number defined, I would intermittently get plans that said it would remove it.

Because I was getting this dodgy behavior, I explicitly added it. Now, I intermittently get the following when I do a plan:

  # site24x7_user.ajay will be updated in-place
  ~ resource "site24x7_user" "user_a" {
        id                           = "207348000012304001"
      ~ mobile_settings              = {
          + "mobile_number" = "5555555555"
            # (1 unchanged element hidden)
        }
        # (18 unchanged attributes hidden)
    }

It doesn't matter how many times I terraform apply.

from terraform-provider-site24x7.

jamiejackson avatar jamiejackson commented on July 28, 2024

Update: This is independent of import. I created a monitor from scratch and it has the same issue. New ticket: #261 .

I don' t know whether these are independent of the new import functionality or not, so I may have to file separate tickets for some of this stuff, but here's another example.

I have a similar problem with this resource. This one's constant, though.

locals {
  credential_type = {
    vmware_vcenter           = 1
    vmware_esx               = 2
    web_credentials          = 3
    vmware_vdi               = 4
    client_certificates      = 5
    ssh                      = 7
    nutanix_cluster          = 6
    lama_credentials         = 9
    veeam_enterprise_manager = 8
  }
  # the oauth access token doesn't seem to have permissions to do a credentials lookup
  credentials = {
    stage_basic_auth_id = "207348000012018001"
  }
  auth_method = {
    basic    = "B"
    oauth2   = "O"
    webtoken = "W"
  }
}

resource "site24x7_website_monitor" "home_page__stage" {
  display_name                = "Home Page"
  website                     = "https://example.com/"
  auth_method                 = local.auth_method.basic
  check_frequency             = "1"
  credential_profile_id       = local.credentials.stage_basic_auth_id
  ignore_cert_err             = false
  location_profile_id         = site24x7_location_profile.united_states.id
  match_regex_severity        = 2
  matching_keyword_severity   = 0
  matching_keyword_value      = "need housing assistance"
  timeout                     = 30
  unmatching_keyword_severity = 2
  use_name_server             = false
  monitor_groups = [
    site24x7_monitor_group.stage.id
  ]
  third_party_service_ids = ["207348000005128003"]
}

terraform plan always shows.

  # site24x7_website_monitor.home_page__stage will be updated in-place
  ~ resource "site24x7_website_monitor" "home_page__stage" {
      - auth_user                   = "REDACTED" -> null
        id                          = "207348000000114064"
        # (41 unchanged attributes hidden)
    }

from terraform-provider-site24x7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.