Closed jooh-lee closed 4 years ago
Hi @jooh-lee,
Unfortunately I think what you were trying to communicate has been lost in the editing you did, because the edited example you've shared describes an impossible situation: module.foo.aws_security_group_rule.ingress.key1
is not a resource address that can exist, because it has too many dot-separated parts.
I understand that you cannot show the plan from the configuration you are currently working on, but in order to understand the behavior you're seeing I'd ask you to write a new, smaller configuration that includes only enough to illustrate the problem (feel free to use null_resource
resources instead of "real" resource types to avoid depending on real remote APIs), and then share that configuration in full along with the exact terraform plan
output you saw in response to it, and what you had expected it to show instead.
Thanks!
Hi again, @jooh-lee!
We didn't see another message for you after my earlier comment asking for more information, so I'm going to close this assuming that you either cannot provide that information or you've found a different way to resolve the problem. If you'd like to continue working on this bug report with us, please let us know and we'll reopen this. Thanks!
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
Expected Behavior
When using count on a resource, the count index number should be going up regardless of whether there are other resources interspersed in the plan. example:
Actual Behavior
In the plan, when a resource that is not the count resource is inbetween, the count.index is reset. I can't show the actual plan, so i'll replicate what I'm seeing with different names and what not:
The above is a portion of the plan and is the exact renamed replica of what I'm seeing
Steps to Reproduce
terraform init
for_each
for_each
withcount
with any relevant changes to get it validterraform plan