terraform-aws-vpc icon indicating copy to clipboard operation
terraform-aws-vpc copied to clipboard

Variable Validation and Type Constraints

Open entscheidungsproblem opened this issue 3 years ago β€’ 1 comments

Is your request related to a problem? Please describe.

It would be helpful to have variable validation and preconditions to ensure that the inputs are correctly configured before applying.

Describe the solution you'd like.

Updating to to Terraform 1.3.0+ to be able to use optional variables for objects. This allows for variable validation on values in objects, even if they are not provided.

Additional context

  • I have started some work locally and will create a PR soon.

entscheidungsproblem avatar Sep 24 '22 01:09 entscheidungsproblem

Hi Patrick,

This module, as well as the rest of terraform-aws-modules have lower Terraform version requirements because there is almost no need for us to bump it and drop support for customers using Terraform 1.0 (or even 0.13 in some cases). Maintaining multiple versions is too much work for the maintainers.

We have been delaying rushing the introduction of the newest features added into Terraform because some of them had side effects (aka bugs and limitations) when used in the modules.

There should be significant benefits for the module users when we upgrade the Terraform version significantly.

In the past, we had just a few significant upgrades of the Terraform version requirements - from 0.11 to 0.12, from 0.12 to 0.13.1, and from 0.13.1 to 1.0 (ongoing).

Let's leave this issue open for a while if anyone has more thoughts.

antonbabenko avatar Sep 24 '22 09:09 antonbabenko

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Oct 25 '22 00:10 github-actions[bot]

This issue was automatically closed because of stale in 10 days

github-actions[bot] avatar Nov 05 '22 00:11 github-actions[bot]

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.

github-actions[bot] avatar Dec 05 '22 02:12 github-actions[bot]