State 'loses' resources? #5490
Labels
bug
Addresses a defect in current functionality.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
Milestone
This issue was originally opened by @huseyinham as hashicorp/terraform#18646. It was migrated here as a result of the provider split. The original body of the issue is below.
Hi! I'm not sure if this should go to core or AWS-provider but I seem to be having an issue where terraform 'loses' state when applying and destroying fairly large amounts of listener rules over a short period of time (but over different applies in parallel)?
One apply contains 6 listener rules being created, so all-in-all I'm probably creating around 180 listener rules. I originally had less terraform runs because I bundled listener rule creation into the same file as target groups, but when I ran into this issue I thought it may be a race condition of some kind during the destruct so split them out, however it still occurs.
Terraform Version
Terraform Configuration Files
I'm using modules that utilise these resources:
Example 1
Creation of 2 listener rules:
Destruction of 1 listener rule only(?):
Example 2
Expected Behavior
The listeners created via an apply are destroyed when a destruct is run.
Actual Behavior
Some of the listener_rules are 'lost' and therefore doesn't destroy them (although terraform claims they were). Then when I try to destroy the Target Groups (via a different terraform destroy run), it can't due to it still being attached to a listener rule.
I noticed that during creation, the problematic listener rule never gives an arn ID after when it states 'Creation Complete'.
I'm not really sure how to proceed to debug from here though I'm afraid so any support or highlighting my stupidity is appreciated.
The text was updated successfully, but these errors were encountered: