-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: Acceptance tests fail with Failed state verification, resource with ID ... not found
#27049
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Was able to reproduce from my side FWIW:
|
I was able to reproduce on 1.3.2:
|
reproducible on 1.3.2 core:
|
As of 4 days ago, we are using |
Thanks for letting me know @YakDriver - I can confirm that solves the issue for me. |
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 Core Version
1.3.0,1.3.1
AWS Provider Version
latest
Affected Resource(s)
No response
Expected Behavior
When running the acceptance tests in this repository, the tests should pass.
Actual Behavior
Some tests fail with message
Failed state verification, resource with ID .. not found
.Some example tests that are failing:
TestAccQuickSightGroup_withDescription
TestAccVPC_DefaultTagsProviderAndResource_nonOverlappingTag
TestAccECRRegistryPolicy_serial/basic
All these tests are passing with Terraform 1.2.9 installed, but fail with 1.3.0/1.3.1.
The exact ID specified in the error message looks to be one of [
aws
,{account_id}
,{region}
] - not an actual resource ID.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
N/A
Steps to Reproduce
These errors where found when running the tests against Moto/Localstack as an alternative to AWS.
To reproduce against Moto:
Note that Moto contains
terraform-provider-aws
as a submodule. The current commit is 3 months old, but the same behaviour occurs when updatingterraform-provider-aws
to the latest commit onmain
.Debug Output
No response
Panic Output
No response
Important Factoids
The errors were discovered as part of our CI process, that runs the acceptance tests against Moto. An example output that shows the failing tests can be found here: https://github.com/spulec/moto/actions/runs/3161022833
Note that this is run on Terraform 1.3.0. Some tests are already fixed in 1.3.1, but all tests that fail with
Failed state verification..
still fail against 1.3.1.Some background info on how/why Moto runs the tests from this repository can be found here:
http://docs.getmoto.org/en/latest/docs/contributing/development_tips/tests.html#terraform-tests
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: