-
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
interpolation in count on module output in next module gives strconv.ParseInt #7260
Comments
This is still an issue in 0.7.1 - this is very limiting the usefulness of modules. |
I can confirm that the bug also manifest using terraform_remote_state. The specific use case is getting a list from a list from a remote state, and using the list and then using the list in a plan to compute a count to iterate over the list. |
I had a very similar problem and also thought it was an issue with the core terraform code. It turned out to be an access issue with the S3 bucket containing the tfstate remote file. |
@marionettist - I don't think that this is my problem. I have two variables that I pass to my module. One is a count, the other is a list. I can access the list using count.index. However, I cannot use the list to calculate the count using length(list) - I tried calculating the count inside the module, or outside, with the exact same outcome. |
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.7.0-rc2 (46a0709)
Affected Resource(s)
resource "cloudstack_ipaddress"
resource "template_file"
So it looks like it might be a core issue as it occurs on multiple resources
Terraform Configuration Files
The plan
VPC module
PUBLICIP module
PRIVGW module
Debug Output
https://gist.github.com/ddegoede/088604900d5fe338e02b6b929aa6ece9
Expected Behavior
Show the resource t o be build
Actual Behavior
Syntax error
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: