-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 import bulk #23926
terraform import bulk #23926
Conversation
Allow to import many different terraform resources in one command, by supplying a list of addr,id pairs. Basically, importing hundreds of resources takes a few hours before this cl, and a few mintues after it. To make implementation somewhat easier I have taken out a chunk of the mapping from args to targets into a smaller function, but the rest stays almost the same. Some error messages change a bit. Fixes hashicorp#22219
Hi @apparentlymart Can you take a look? This shortens the import for us from 3 hours to a few minutes. |
Any chance someone could take a peak at this? We're in a similar boat, our imports take about four hours. |
Hi @apparentlymart would be great if someone could merge this pull request even as a temporary fix if you're planning on something different. We have imports that take days to complete which could be completed in less than an hour. |
how does this compare to #22227? |
Any updates on this? |
Hi, and sorry for the long silence on this PR. @jarondl , thank you for submitting this. We are absolutely aware that bulk import is an important feature request, and the Terraform Core team hopes to spend some time focusing on the import design in general, so we are not going to accept any new features at this time. Thanks for putting in the effort! |
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. |
Allow to import many different terraform resources in one command, by
supplying a list of addr,id pairs.
Basically, importing hundreds of resources takes a few hours before this
change, and a few mintues after it.
To make implementation somewhat easier I have taken out a chunk of the
mapping from args to targets into a smaller function, but the rest stays
almost the same. Some error messages change a bit.
Fixes #22219