-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Route table IDs output uses function and therefore count cannot rely on it #782
Comments
Hi, You need to replace the value in Please consider asking generic questions about Terraform on https://discuss.hashicorp.com There is not much we can do in this module, so I am going to close this issue. |
Fair point, obviously there's an issue with how functions proceed. BTW number of routes already serves as the secondary (nested) count but I don't think switching order will help any. Is there any other output/input mix you can think of that could be used for that purpose? |
You should be able to get better generic support by asking questions about Terraform on discuss.hashicorp.com. |
With due respect:
The first one uses just pure splat, the second does use coalescelist. If this is fine, it was well thought out decision and we don't want to limit ourselves with function usage just because Terraform is buggy so therefore Closed & won't fix then it's alright. Just please don't make me feel like what I reported is not terraform-aws-vpc related at all. |
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. |
Description
Commit 19fcf0d introduces changes to outputs from simple types to using a function. Therefore Terraform is unable to use them as basis for count. Error is as follows. Downgrading to v3.11.1 made it work.
Versions
Module version [Required]: 3.14.0
Terraform version:
v0.15.0, same behaviour with 1.1.9
Provider version(s):
AWS v4.12.1
Reproduction Code [Required]
Steps to reproduce the behavior:
Are you using workspaces? Yes!!!
Have you cleared the local cache (see Notice section above)? Done.
List steps in order that led up to the issue you encountered: VPC module bump.
Expected behavior
Count based on output will work as previously (as the code is already a workaround for not having setproduct() or for loop producing reliable output.
Actual behavior
Count cannot rely on output anymore.
Additional context
Targeting module.vpc didn't produce any changes.
The text was updated successfully, but these errors were encountered: