-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Labels
Description
Environment
- TMOS/Bigip Version: 17.5.1.3 buld 0.0.19
- Terraform Version: Terraform v1.7.4
- Terraform bigip provider Version: 1.24.1
Summary
While attempting to import an existing monitor, based on this documentation https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_ltm_monitor, I receive the error:
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: parent must be one of /Common/udp, /Common/postgresql, /Common/mysql,/Common/mssql, /Common/http, /Common/https, /Common/icmp, /Common/gateway_icmp, /Common/tcp_half_open, /Common/tcp, /Common/ftp. /Common/smtp
│
│ with bigip_ltm_monitor.ltm_monitor["/Common/DNS-Monitor"],
│ on monitors.tf line 4, in resource "bigip_ltm_monitor" "ltm_monitor":
│ 4: parent = each.value.parent
Based on the output from the f5 appliance CLI, I believe that /Common/dns should be a valid parent option:
me@(f5)(/Common)(tmos)# list ltm monitor
ltm monitor dns DNS-Monitor {
accept-rcode no-error
adaptive disabled
answer-contains query-type
defaults-from dns
description "Monitor DNS Pool members for availability"
destination *.domain
interval 5
qname example.com
qtype a
recv 1.1.1.1
time-until-up 0
timeout 16
}
I also confirmed in the UI that if you build a DNS monitor, it defaults to using /Common/dns as the parent:
Steps To Reproduce
Steps to reproduce the behavior:
- Use provided versions
- Build a bigip_ltm_monitor resource with the parent
/Common/dns - Run terraform plan
Expected Behavior
Terraform plan runs without error and I can finish importing the existing resource or build a new one.
Actual Behavior
Terraform errors out:
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: parent must be one of /Common/udp, /Common/postgresql, /Common/mysql,/Common/mssql, /Common/http, /Common/https, /Common/icmp, /Common/gateway_icmp, /Common/tcp_half_open, /Common/tcp, /Common/ftp. /Common/smtp
│
│ with bigip_ltm_monitor.ltm_monitor["/Common/DNS-Monitor"],
│ on monitors.tf line 4, in resource "bigip_ltm_monitor" "ltm_monitor":
│ 4: parent = each.value.parent