Comments (3)
@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.
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.
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)
- why is check_frequency a string instead of a number? HOT 1
- rest_api_monitor documentation duplicate reference
- `mobile_settings` Parameters Not Setting for `site24x7_user`
- `primary_response_time_trouble_threshold` Parameter Not Setting for `site24x7_threshold_profile` Resource.
- `lookup_type` Parameter Not Setting to "MX" for `search_config` Block in `site24x7_dns_server_monitor` Resource
- inconsistent value for template_id
- Unable to Import `site24x7_web_transaction_browser_monitor`
- location_profile outer_regions_location_consent is set always to false
- tag_names is not idempotent HOT 1
- response_headers_severity does not allow down value
- "Invalid data provided for the resource" when updating site24x7_web_transaction_browser_monitor HOT 1
- panic in terraform-provider-site24x7_v1.0.90 plugin
- match_xml not supported for site24x7_rest_api_monitor
- Cron Threshold - issues setting variable
- inconsistency in default value
- site24x7_monitor_group deletion is not recognized from state
- site24x7_ping_monitor does not support domain_name
- RestAPI resource weird behaviour with json_schema attribute
- feature request
- Data block not working for Credential Profile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-site24x7.