-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Cycle errors in 1.3.2 #32046
Comments
Thanks for filing the issue. Without an example we unfortunately are not going to be able to diagnose the problem, or validate any solutions. If you could generate a standalone reproduction, it would help greatly. The next v1.3.4 release will have some more improvements here which may help if you have the ability to test with the current development branch. One thing I can tell from the given cycle output, is that you have multiple providers which depend on managed resources in the same configuration. This is not fully supported (It's mentioned that you cannot safely access managed resource attributes from provider configuration in the docs here). This type of configuration also inherently causes cycles in some situations, which Terraform tries to detect and avoid, but there is not yet a universal mechanism to do this. You can see the issue #30465 showing the same problem from earlier versions too. I also just mentioned in the linked issue that most of the known cases of these cycles should be resolved, so it would be very helpful to get an example here if the next release does not remedy the situation. Thanks! |
We are getting the same issue too on the 1.3x (1.3.2, 1.3.3) releases:
We use dynamic providers in the current approach, as we dynamically provision AWS Subaccounts. This works on Terraform 1.2x. Our approach is necessary for the lack of #25244 |
Happening to us as well. Works on 1.2.4, does not work on 1.3.1, 1.3.3. Attempting to track it down via graph nothing ends up being circled red. It's occurring during plans that result in resources being removed...specifically in our case the plan is attempting to remove all the resources that exist in a module
to
|
@jbardin i just tested with the v1.3 branch and also main and the problem goes away in both. |
I can confirm that 1.3.4 that was just release has fixed it on our side! 🙂 |
Hello, Without any examples or configuration to reproduce the problem, there's not going to be much else we can do here. As others have pointed out, known cases have been resolved by the latest release, so I'm going to close this out as complete for now. 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. |
Terraform Version
Terraform Configuration Files
Unable to provide due to volume
Debug Output
N/A
Expected Behavior
Terraform plans/applies as usual
Actual Behavior
In 1.3.2 a cycle is detected:
Thought to be resolved in 1.3.2 from #31843 however is still occurring. Downgrading to 1.2.9 causes this same configuration to succeed.
Steps to Reproduce
terraform apply
Additional Context
N/A
References
#31843
The text was updated successfully, but these errors were encountered: