Skip to content

strange cycle errors in 1.3.0 #31843

@jbg

Description

@jbg

Terraform Version

Terraform v1.3.0
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.31.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.13.1

Terraform Configuration Files

Unable to provide.

Debug Output

Unable to provide.

Expected Behavior

In Terraform 1.2.9, the configuration applies without any issue.

Actual Behavior

In Terraform 1.3.0, a cycle is detected, even though several of the resources listed adjacently in the cycle do not have any (implicit or explicit) dependency on each other.

│ Error: Cycle: aws_subnet.sin["ap-southeast-1a"], aws_iam_role.sin_cluster, aws_subnet.sin["ap-southeast-1c"], aws_vpc.sin, aws_subnet.sin["ap-southeast-1b"], provider["registry.terraform.io/hashicorp/kubernetes"], kubernetes_manifest.eventlistener (destroy), aws_kms_key.sin_cluster, aws_eks_cluster.sin

Perhaps notably, the kubernetes_manifest.eventlistener resource is tainted and will be replaced.

Downgrading to 1.2.9, the exact same configuration applies without any issue.

Steps to Reproduce

  1. terraform apply

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions