terraform-provider-bigip
terraform-provider-bigip copied to clipboard
bigip_command always shows command_result as a new field
Summary
When you create a bigip_command, it will succeed but whenever you run terraform apply again it will always show + command_result = (known after apply) causing the command to be modified everytime.
Steps To Reproduce
Steps to reproduce the behavior:
- Create a bigip_command resource
- Run tf apply again
- Notice the change always appearing
Expected Behavior
The resource should have no changes detected
Actual Behavior
The resource pollutes the terraform plan
@braunsonm Please share the exact TF manifest to try at our end.
@trinaths
resource "bigip_command" "create_partition" {
commands = ["create auth partition ${var.partition_name} default-route-domain 0"]
when = "apply"
}
This is a temporary workaround:
resource "bigip_command" "create_partition" {
commands = ["create auth partition ${var.partition_name} default-route-domain 0"]
when = "apply"
lifecycle {
ignore_changes = [command_result]
}
}