-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
terraform resource doesn't exist when using modules and data resource #7014
Comments
I understand this is a critical racing issue as terraform almost doesn't know when the resource should exist. In this case, I'd recommend seldom use of the data resource and requiring submodules to require specific information from other modules for it to interoperate properly. |
related to: hashicorp/terraform#17034 |
Hi, @bernadinm! Thank you for using Terraform and for opening up this question. Issues on GitHub are intended to be related to bugs or feature requests with the provider codebase. Please use https://discuss.hashicorp.com/c/terraform-providers for community discussions, and questions around Terraform. Closing this in favor of hashicorp/terraform#17034. If you believe that your issue was miscategorized as a question or closed in error, please create a new issue using one of the following provided templates: bug report or feature request. Please make sure to provide us with the appropriate information so we can best determine how to assist with the given issue. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Affected Resource(s)
On a brand new deployment, there is an update in place where there should just only be an apply
The script then errors with the lines below:
Terraform Configuration Files
Debug Output
terraform plan: https://gist.github.com/bernadinm/52a62dff96fcefb630a7736a15847f3f
terraform apply: https://gist.github.com/bernadinm/c3bbb54e420ead2d13cbc24270b3ec09
The plan shows update in place for the data resource
and the error shows that it doesn't know that the security group was created
Panic Output
Expected Behavior
I expected it to print out the output of the security group
Actual Behavior
It said no security group existed and when you rerun terraform apply, it recognizes it.
Steps to Reproduce
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: