Skip to content
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 error during validation introduced in terraform version 1.8.1 #35147

Open
jbeaven2 opened this issue May 10, 2024 · 1 comment
Open

Cycle error during validation introduced in terraform version 1.8.1 #35147

jbeaven2 opened this issue May 10, 2024 · 1 comment
Labels
bug new new issue not yet triaged waiting for reproduction unable to reproduce issue without further information waiting-response An issue/pull request is waiting for a response from the community

Comments

@jbeaven2
Copy link

jbeaven2 commented May 10, 2024

Terraform Version

v1.8.1

Terraform Configuration Files

This calls a source module which has dependencies.

Debug Output

This is a large repo and debug/trace generates 20000 lines. Having reviewed these, nothing stands out.

Expected Behavior

I expected the terraform validation to be successful and for terraform plan to run.

Actual Behavior

Error during terraform validation:

Error: Cycle: module.app.azurerm_application_insights_api_key.read_telemetry, module.app.azurerm_role_assignment.rbac_permissions_on_app_configuration, module.app.azurerm_application_insights.appinsights, module.app.data.azurerm_monitor_diagnostic_categories.this, module.app.azurerm_monitor_diagnostic_setting.web_app_diagnostics, module.app (close), module.app.output.windows_web_app (expand), data.azurerm_application_insights.parent_app_insights, module.app.var.app_insights_exist (expand), module.app.azurerm_windows_web_app.windows_web_app, module.app.azurerm_private_endpoint.appservice_pep

Older versions of terraform do not have this issue. The latest version of terraform which doesn't have this issue and the validation works is v1.8.0.

Steps to Reproduce

na

Additional Context

Release notes for 1.8.1 https://github.com/hashicorp/terraform/releases/tag/v1.8.1

References

No response

@jbeaven2 jbeaven2 added bug new new issue not yet triaged labels May 10, 2024
@jbardin
Copy link
Member

jbardin commented May 10, 2024

Hi @jbeaven2,

Thanks for filing the issue! In order to inspect how exactly the cycle is connected, we will also need the associated configuration. Seeing how this is detectable during validation, it should not actually require any state or provider configuration, so if the configuration can't be provided you may be able to replicate the module and resource structure in a more minimal example.

Thanks!

@jbardin jbardin added waiting-response An issue/pull request is waiting for a response from the community waiting for reproduction unable to reproduce issue without further information labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug new new issue not yet triaged waiting for reproduction unable to reproduce issue without further information waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

No branches or pull requests

2 participants