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

self in Module Declaration causes crash #1609

Closed
pearkes opened this issue Apr 20, 2015 · 2 comments · Fixed by #1622
Closed

self in Module Declaration causes crash #1609

pearkes opened this issue Apr 20, 2015 · 2 comments · Fixed by #1622

Comments

@pearkes
Copy link
Contributor

pearkes commented Apr 20, 2015

Given a module declaration like this:

module "foo" {
    source = "./bar"
    name  = "pearkes"
    foobar = "${self.name}-2"
}

Terraform crashes on:

terraform plan -module-depth=-1

Log: https://gist.github.com/pearkes/6910ff43d8a1350986ef

@mitchellh
Copy link
Contributor

Thanks, fixed in the attached PR. Self variables don't quite work that (though I'd like them to one day). For now, they simply aren't allowed in modules.

mitchellh added a commit that referenced this issue Apr 22, 2015
config: error in validation if module has self variable [GH-1609]
@ghost
Copy link

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

Successfully merging a pull request may close this issue.

2 participants