Skip to content
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 based on tags #23188

Closed
charlottemach opened this issue Oct 25, 2019 · 2 comments
Closed

Terraform import based on tags #23188

charlottemach opened this issue Oct 25, 2019 · 2 comments

Comments

@charlottemach
Copy link
Contributor

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.

@hashibot
Copy link
Contributor

Hello! 🤖

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!

@ghost
Copy link

ghost commented Mar 29, 2020

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 ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants