-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #16: issue with removing folders #20
Conversation
This is a fix, but there's a potential corner case. State has resources matching
and then change to
and run |
@averbuks read my comment above... |
Are you sure? Only until/unless you run In fact, it would be the same outcome even without this. This is truncating the list, but the out
We should not force people to edit module internals simply to apply a perfectly valid config. |
I misinterpred the order of execution, so disregard my previous comments! Thanks @morgante for pointing that out privately :) |
I mulled this over a bit as there are similar issues in the service accounts module, and there's something I can't wrap my head around. Removing an element from the What I don't get is why a similar error isn't raised when an element is added to the Can someone who understands Terraform internals shed some light here? Is the evaluation only done when destroying resources, which resonates with the issues open in the Terraform repository on this subject, that mostly seem to deal with |
@ludoo what is the output in the scenario of adding an extra name? |
What you'd expect after a successful apply. The issue is only when deleting a resource, either through a change in inputs or when destroying, so Morgante's patch addresses it. |
Fixes #16 by slicing the outputs to the length of inputs.