Change terraform version and remove deprecated code #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I attempted to use this terraform code, it failed for a couple of reasons:
experiments = [module_variable_optional_attrs]
is no longer supported in tf versions 1.3 and later. See Terraform 1.3 module_variable_optional_attrs experiment support hashicorp/terraform#31692 for more detailsSo I removed that line and bumped the required tf version to 1.3
default
. With the default resource group, the code will provision as written with no changes needed. The user can always change the resource group name if they want - which they would have to do anyway once they hit an error on"asset-development"
There are a couple of other changes I'd recommend: such as, turning on the public service endpoint (otherwise the user can't interact with the cluster w/o a jumpbox) and changing
variable "wait_till"
toOneWorkerNodeReady
to prevent tf from hanging if ingress takes a long time to complete. But I can open a new PR for those types of changes.