-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_automation_module does not wait for import to complete. #3109
Comments
This comment has been minimized.
This comment has been minimized.
I've faced exactly the same problem. My workaround was adding a 120-second delay between two
|
hey @KJ4IPS @ahmddp Thanks for opening this issue :) Taking a quick look into this this appears to be a duplicate of #2600 - since that also includes some additional context around the Thanks! |
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_automation_module
Terraform Configuration Files
main.tf
Azure CLI was used for authentication.
Debug Output
https://gist.github.com/KJ4IPS/98e05ac227b0099ecc2e691d69313dff
Note: powershell put a NativeCommandError in here, feel free to ignore it.
Panic Output
Terraform did not panic
Expected Behavior
Terraform should have waited for the fist module import (profile) to complete before importing the second (container_instance)
Actual Behavior
Terraform started the import of
profile
, then immedatly started the import ofcontainer_instance
without waiting forprofile
to finish.This lead to the failure of the
container_instance
import, ascontainer_instance
depends (in a powershell sense) onprofile
. (depends_on
was used to ensure correct import order)Additionally, terraform does not see the failed import as drift, so it will leave the failed import around until it is tainted, or drifts in some other aspect.
Steps to Reproduce
terraform apply
References
The text was updated successfully, but these errors were encountered: