Skip to content
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

Support lists validation in resources schema definition #3641

Closed
wants to merge 2 commits into from

Conversation

jsoriano
Copy link

Supports lists validation in resources schema definition.

The motivation of this change is to check that there are not multiple definitions of health checks in AWS ELBs.
Currently terraform allows to define several health checks, but an ELB can only have one health check and only the first one is used, ignoring the rest without any warning. A developer can think that all the health checks are being configured, but only the first one is created at the end.

@josephholsten
Copy link
Contributor

@jsoriano any chance you could throw together a test case for this?

@phinze, @mitchellh this could use your 👀

ELB doesn't support multiple health checks, terraform allowed
to define them, but it used the first one without any warning.
After this change it will fail.
@jsoriano
Copy link
Author

jsoriano commented Feb 9, 2016

@josephholsten I have added some tests for lists and sets validation.

@stack72
Copy link
Contributor

stack72 commented Oct 26, 2016

Hi @jsoriano

I am sorry that this has taken so long to get back to - since this PR was opened, we added some new helper schema additions that will help here. One of them is MaxItems - that will remove the need for this ValidationFunc in this PR

I am going to close this out - thanks for the work you have put in there. We really do appreciate it! Please let me know if you have any other questions

Thanks

Paul

@stack72 stack72 closed this Oct 26, 2016
@ghost
Copy link

ghost commented Apr 21, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants