-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
required_version has no effect #10715
Comments
@mitchellh should it matter if I'm declaring the terraform {
required_version = "> 0.8.1"
}
module "s3" {
source = "./modules/s3"
depends-id = "${ module.vpc.depends-id }"
bucket-prefix = "${ var.s3-bucket }"
hyperkube-image = "${ var.k8s["hyperkube-image"] }"
hyperkube-tag = "${ var.k8s["hyperkube-tag"] }"
internal-tld = "${ var.internal-tld }"
name = "${ var.name }"
region = "${ var.aws["region"] }"
service-cluster-ip-range = "${ var.cidr["service-cluster"] }"
} |
@seanknox I tried two scenarios, both of which were successful:
|
@mitchellh ok, this is interesting:
|
That's it. I know what is happening. When an Reiterating: This only affects your config if the module with |
By the way, thanks for sticking with this and being helpful. It led to knowing whats going on. 👨❤️👨 |
Ah! And I also learned that I have an |
Fixes #10715 `config.Merge` was not updated to support a number of new features. This updates the codepath to merge various fields, including the `terraform` block which was the issue in #10715. The `Merge` API is called when an `_override` file is present to _merge_ configurations. Normally configurations are _appended_. Only an override file triggers a _merge_. I started working on a generic library to do this automatically awhile back but never finished it. This might motivate me to do so. In the interest of getting a fix out though, we'll continue the manual approach.
Fixed in the referenced PR. Thanks again! |
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. |
Terraform Version
Terraform v0.8.0
Affected Resource(s)
terraform { required_version = "> ..." }
Terraform Configuration Files
Debug Output
Unfortunately I have a lot of sensitive information in my debug output that I can't include.
Expected Behavior
An error is shown and TF exits due to TF version < 0.8.1
Actual Behavior
Plans are executed with Terraform 0.8.0
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform
configuration:terraform apply
The text was updated successfully, but these errors were encountered: