Open
Description
Describe the bug
When managing the avi_ipamdnsproviderprofile
resource with the Terraform Provider for Avi, every Terraform plan/apply cycle reports changes even when there have been no modifications in the configuration. Specifically, the infoblox_profile
block is flagged as changed on each run, creating unnecessary in-place updates.
Reproduction steps
- Configure an
avi_ipamdnsproviderprofile
resource in Terraform, including theinfoblox_profile
block. - Run terraform apply.
- Run terraform plan again without making any changes to the Terraform configuration.
- Observe that Terraform still detects a change in the
infoblox_profile
block, prompting an update in-place.
terraform {
required_providers {
avi = {
source = "vmware/avi"
version = "30.2.2"
}
}
}
provider "avi" {
avi_username = "USER"
avi_password = "PASSWORD"
avi_controller = "avicontroller.contoso.com"
avi_tenant = "admin"
avi_version = "30.2.2"
}
resource "avi_ipamdnsproviderprofile" "infoblox-dns" {
name = "infoblox-dns"
type = "IPAMDNS_TYPE_INFOBLOX_DNS"
infoblox_profile {
ip_address {
addr = "infoblox.contoso.com"
type = "DNS"
}
dns_view = "Internal"
network_view = "default"
username = "INFOBLOX_USER"
password = "INFOBLOX_PASSWORD"
wapi_version = "2.12.3"
usable_domains = [ "contoso.com" ]
}
allocate_ip_in_vrf = "false"
}
Expected behavior
Terraform should recognize the resource as unchanged if no configuration alterations have been made. The infoblox_profile block should not trigger an in-place update unless a genuine difference exists.
Additional context
Environment:
Terraform v1.8.0
terraform-provider-avi v30.2.2
- AVI 30.2.2