Closed yevgenypats closed 2 years ago
Duplicate of #193
@yevgenypats I have been looking into this right now, and it seemed to me that this issue was not very consistent.
The linked example in the cloudquery repository creates 55+ resources, and sometimes it produces this error, but in most cases, it doesn't. When I reduced the scope of that example (by disabling the creation of the VPC resources, for example), it worked without a problem.
For the time being, using terraform apply -target=...
prior to the main terraform apply
should be a solution for cases like this (not necessarily limited to this module).
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.
Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the
examples/*
directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by runningterraform init && terraform apply
without any further changes.If your request is for a new feature, please use the
Feature request
template.β οΈ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]: v4.20.1
Terraform version:
Terraform v1.1.8 on darwin_arm64
provider registry.terraform.io/hashicorp/aws v4.9.0
provider registry.terraform.io/hashicorp/cloudinit v2.2.0
provider registry.terraform.io/hashicorp/helm v2.5.0
provider registry.terraform.io/hashicorp/random v3.1.2
provider registry.terraform.io/hashicorp/tls v3.3.0
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
https://github.com/cloudquery/terraform-aws-cloudquery/tree/acd82e3429544b94960e2a34414b1d405d6b874e/examples/complete
Running terraform apply will product the following error:
Expected behavior
Actual behavior
Terminal Output Screenshot(s)
Additional context