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

Regression in loading variables.tf.json from module #8820

Closed
phinze opened this issue Sep 13, 2016 · 4 comments
Closed

Regression in loading variables.tf.json from module #8820

phinze opened this issue Sep 13, 2016 · 4 comments

Comments

@phinze
Copy link
Contributor

phinze commented Sep 13, 2016

Terraform Version

0.7.3

Terraform Configuration Files

module "ami" {
  source        = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/ebs"
  instance_type = "t2.micro"
  region        = "us-east-1"
  distribution  = "trusty"
}

output "ami" {
  value = "${module.ami.ami_id}"
}

Steps to Reproduce

  1. terraform get

Expected Behavior

  • Successful exit

Actual Behavior

Get: git::https://github.com/terraform-community-modules/tf_aws_ubuntu_ami.git
Get: git::https://github.com/terraform-community-modules/tf_aws_virttype.git
Get: file:///Users/phinze/tmp/tf/amimoderror/.terraform/modules/0ec790a5c99e8db6524c7ac02e48e712
Error loading Terraform: module ami.root: module virttype: required variable prefer_pv not set

Important Factoids

References

@phinze phinze changed the title Possible regression in loading variables.tf.json from module Regression in loading variables.tf.json from module Sep 13, 2016
@jbardin
Copy link
Member

jbardin commented Sep 13, 2016

The breaking commit turns out to be #8591 (specifically 609219f)

@jbardin
Copy link
Member

jbardin commented Sep 13, 2016

The root cause is a bug in HCL: hashicorp/hcl#153

jbardin added a commit that referenced this issue Sep 15, 2016
jbardin added a commit that referenced this issue Sep 16, 2016
Fix #8820 Regression in loading variables.tf.json from module
@jbiel
Copy link

jbiel commented Sep 16, 2016

Thanks for the fix, this hit me on 0.7.3. When I passed the config file via -var-file... I still ended up with some kind of parsing issue because I received an error ("unknown variable accessed".) Master works (but I keep trying to get away from running it!)

@ghost
Copy link

ghost commented Apr 22, 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 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants