Open ag91 opened 1 month ago
Thanks @ag91. We only provide limited up front validation via terraform plan
right now, and I understand that's a pain point.
I don't know when we'll get to implement this feature, but I agree that it would be useful for everyone.
Thanks for maintaining this module. It is cool to manage kong via text editing. I got surprised a couple of times by errors not picked up by
terraform plan
but picked up byterraform apply
for this module. Yesterday I could record the following one.I suspect the root cause seems to be that on
terraform plan
this module validates syntax but doesn't do dry-run API calls to test that the new resources respect Kong's rules. (Maybe that could explain also this one?)Steps to reproduce:
Actual behavior:
terraform plan
succeeds andterraform apply
fails with with an error similar to:Expected behavior:
terraform plan
fails with the same errorBonus points:
terraform plan
fails with a human friendly explanation, on the linesMultiple plugins [names&ids] are not allowed for the same route [name&id].
Thanks!