-
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
State 'loses' resources? #18646
Comments
Hi @huseyinham! Sorry for this concerning behavior. At first glance this seems like an issue specific to that resource, so for now I'm going to have our bot move this into the AWS provider repository where the team is more equipped to dig into the details here and figure out what's going on against the underlying API. If it turns out that this is a result of a Terraform Core bug then we'll reopen this issue here and figure out how to address it. Thanks for reporting this! |
This issue has been automatically migrated to hashicorp/terraform-provider-aws#5490 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-aws#5490. |
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. |
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: