Closed mmshaikh88 closed 4 years ago
Duplicate of #23821
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.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Error: leftover module module.iam_user_test_user in state that should have been removed; this is a bug in Terraform and should be reported
Expected Behavior
The resource should have been removed once we have removed the user tf file.
Actual Behavior
Getting error
Steps to Reproduce
Initially using terraform 0.12.13 without any error. Download terraform 0.12.19 and set as default tf. terraform init terraform 0.12upgrade terraform validate generate test_user.tf file terraform init terraform plan terraform apply Remove test_user.tf file terraform plan terraform apply
Additional Context
References
https://github.com/terraform-aws-modules/terraform-aws-iam