You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently importing existing infrastructure into terraform state files supports only one resource at a time and will only support collections in the future. This is done by giving an ID to import.
There is no way of running import based on tags.
Attempted Solutions
Provider: AWS
Retrieving the IDs with aws cli commands (with --tag-filters), and importing them one by one.
Proposal
Being able to run terraform import all --tag=name:value or something like it, would make importing resources a lot cleaner. Adding that to the feature for multiple resource import would be useful.
The text was updated successfully, but these errors were encountered:
This issue seems to be covering the same problem or request as #22219, so we're going to close it just to consolidate the discussion over there. 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 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.
ghost
locked and limited conversation to collaborators
Mar 29, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Use-cases
Currently importing existing infrastructure into terraform state files supports only one resource at a time and will only support collections in the future. This is done by giving an ID to import.
There is no way of running import based on tags.
Attempted Solutions
Provider: AWS
Retrieving the IDs with aws cli commands (with
--tag-filters
), and importing them one by one.Proposal
Being able to run
terraform import all --tag=name:value
or something like it, would make importing resources a lot cleaner. Adding that to the feature for multiple resource import would be useful.The text was updated successfully, but these errors were encountered: