-
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
Empty state after terraform refresh, when external resource still exist #26021
Comments
Same problem on latest provider version (v4.23.0) - https://gist.github.com/vaspahomov/61e29f53115ca02e69d7fe07b295663a |
Hey @vaspahomov 👋 Thank you for taking the time to raise this! I took a quick look at the debug logs and happened to notice this line:
With that line in mind, was this refresh performed after the resources have been created, or is this a new configuration where you're running |
Hi @justinretzolk! I've created resource with terraform apply. After that I'm calling |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
All resources, but this time on
aws_nat_gateway
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Log from terraform refresh - https://gist.github.com/vaspahomov/94bff9821713b0d374888cf0ecdf29bd
Panic Output
Expected Behavior
State still exists after refresh and will be like -
Actual Behavior
State disappeared.
Steps to Reproduce
I can not reproduce stable. The problem happens sometimes after
terraform apply -refresh-only -auto-approve -input=false -lock=false -json
Important Factoids
I've found in log that provider 'produced an unexpected new value during refresh'
References
The text was updated successfully, but these errors were encountered: