-
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
Strange behaviour with lists (I think?) #3201
Comments
I believe this bug has been already fixed in #2157 and merged, just not released yet. You can either try and build from master or wait for the next release. |
Thank you, I will wait for the next release. |
Fixed and merged and released in the past! 😀 |
* Add notes about pty and other permit-* extensions * Update troubleshooting * Add an example of JSON for sign * Fix a bug about what keys to push up
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. |
Hey guys,
Forward
I was struggling with an issue I was having with piping a list through a module and then looping through it with the count attribute in a resource definition. I spoke to some people on #terraform-tool on freenode, and managed to find a workaround for this issue, but to me it seems like a bug that this code doesn't work the obvious way.
Objective
I was attempting to take the output of
aws_route53_zone
'sname_servers
list, and add a nameserver record for each via cloudflare.I came up with this: https://gist.github.com/johnhamelink/b4d315e3cad437fc1865
This code would fail on the point of trying to set the records with:
Workaround
After playing around a bit, I found that I could make terraform work correctly simply by joining the list by hand:
terraform.tfstate
The
terraform.tfstate
file includes the output from the aws_zone:Considering the format of the
terraform.tfstate
file, to me it seems like a bug that the join function seemingly cannot join together the nameservers.The text was updated successfully, but these errors were encountered: