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

validation for var.secondary.additional_bandwidth must allow default value "0" #45

Open
ocobles opened this issue Aug 27, 2024 · 0 comments · May be fixed by #47
Open

validation for var.secondary.additional_bandwidth must allow default value "0" #45

ocobles opened this issue Aug 27, 2024 · 0 comments · May be fixed by #47

Comments

@ocobles
Copy link
Collaborator

ocobles commented Aug 27, 2024

There are some modules with validation

validation {
    condition     = !try(var.secondary.enabled, false) || try(var.secondary.additional_bandwidth >= 25 && var.secondary.additional_bandwidth <= 5001, true)
    error_message = "Key 'additional_bandwidth' has to be between 25 and 5001 Mbps."
  }

making it mandatory to add additional_bandwidth >= 25 && <= 500, but it should be optional

@ocobles ocobles linked a pull request Aug 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant