-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Reference template_file rendering in count #6111
Comments
Hi @jmfuchs! Unfortunately yes it is intentional -- though annoying, I agree -- that you can't reference resource attributes in We're working on a new concept called "data sources" over in #4169 which represents the kind of thing #4961 is where the work for this feature is currently being done, with the intent that it be included in the 0.7 release of Terraform. For now I'm going to close this issue since I think it's covered by these other tickets. Thanks for the ticket and I'm sorry I don't have a good workaround for you right now. |
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. |
I am using a template resource to construct a complex list of cidr ranges and want to use it to create the count parameter as shown below.
count = "${length(split(",", template_file.test.rendered))}"
This returns the following error:
resource count can't reference resource variable: template_file.test.rendered
Is this by design that you can't reference a template_file rendering in the count parameter?
Thanks!
The text was updated successfully, but these errors were encountered: