Closed jcarrothers-sap closed 9 months ago
Hi @jcarrothers-sap,
That deprecation warning is coming from the provider itself, and not within the control of Terraform (Terraform actually doesn't know about attribute deprecation messages at all). You would need to file an issue with the provider, but given that they started the message with Users not using loadbalancer resources can ignore this message
, it may be there intentionally.
Thanks!
Hi @jbardin,
The message is coming from the provider, but shouldn't it only be surfaced in a terraform validate
call if it has actually been defined by the end user? The bug is that the message is surfaced even by a deprecated attribute with a default value. I would have expected terraform validate
to filter out such a case.
Terraform does not know why the provider returned a warning, or how to interpret the text of the message. All we can do is display the diagnostics and try to correlate them with locations in the configuration. If you imagine the inverse, it could have been a warning about not setting a field that will be required in the future. This is probably exacerbated by some of the awkward handling of values in the legacy SDK, and might be easier for them to handle going forward with the new plugin framework.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/jcarrothers-sap/c8e46dfd8499a89109a8e3cbbceeda16
Expected Behavior
No deprecation error as the deprecated provider argument (
use_octavia
) is not actually in use.Actual Behavior
The
terraform validate
output complains about about a deprecated argument and points to the opening line of theprovider
block.Steps to Reproduce
terraform init
terraform validate
Additional Context
No response
References
No response